home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / OCEAuthDir.p < prev    next >
Encoding:
Text File  |  1998-02-12  |  173.7 KB  |  4,744 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        OCEAuthDir.p
  3.  
  4.      Contains:    Apple Open Collaboration Environment Authentication Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT OCEAuthDir;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __OCEAUTHDIR__}
  28. {$SETC __OCEAUTHDIR__ := 1}
  29.  
  30. {$I+}
  31. {$SETC OCEAuthDirIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __APPLETALK__}
  35. {$I AppleTalk.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __FILES__}
  38. {$I Files.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __OSUTILS__}
  41. {$I OSUtils.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __MACTYPES__}
  44. {$I MacTypes.p}
  45. {$ENDC}
  46.  
  47. {$IFC UNDEFINED __OCE__}
  48. {$I OCE.p}
  49. {$ENDC}
  50.  
  51.  
  52. {$PUSH}
  53. {$ALIGN MAC68K}
  54. {$LibExport+}
  55.  
  56. {***************************************************************************}
  57.  
  58. CONST
  59.     kRC4KeySizeInBytes            = 8;                            {  size of an RC4 key  }
  60.     kRefNumUnknown                = 0;
  61.  
  62.     kEnumDistinguishedNameBit    = 0;
  63.     kEnumAliasBit                = 1;
  64.     kEnumPseudonymBit            = 2;
  65.     kEnumDNodeBit                = 3;
  66.     kEnumInvisibleBit            = 4;
  67.  
  68. { Values of DirEnumChoices }
  69.     kEnumDistinguishedNameMask    = $00000001;
  70.     kEnumAliasMask                = $00000002;
  71.     kEnumPseudonymMask            = $00000004;
  72.     kEnumDNodeMask                = $00000008;
  73.     kEnumInvisibleMask            = $00000010;
  74.     kEnumAllMask                = $0000001F;
  75.  
  76.  
  77. TYPE
  78.     DirEnumChoices                        = UInt32;
  79. { Values of DirSortOption }
  80.  
  81. CONST
  82.     kSortByName                    = 0;
  83.     kSortByType                    = 1;
  84.  
  85.  
  86. { Values of DirSortDirection }
  87.     kSortForwards                = 0;
  88.     kSortBackwards                = 1;
  89.  
  90. { Values of DirMatchWith }
  91.     kMatchAll                    = 0;
  92.     kExactMatch                    = 1;
  93.     kBeginsWith                    = 2;
  94.     kEndingWith                    = 3;
  95.     kContaining                    = 4;
  96.  
  97.  
  98. TYPE
  99.     DirMatchWith                        = SInt8;
  100.  
  101. CONST
  102.     kCurrentOCESortVersion        = 1;
  103.  
  104. {  Access controls are implemented on three levels:
  105.  *      DNode, Record, and Attribute Type levels
  106.  *  Some access control bits apply to the container itself, and some apply to its contents.
  107.  *
  108.  *  The Catalog Toolbox supports six functions.  These calls are:
  109.  *  DSGetDNodeAccessControl : to get Access Controls at the DNode level
  110.  *    DSGetRecordAccessControl  : to get Access Controls at the record level
  111.  *  DSGetAttributeAccessControl : to get Access Privileges at the attribute type level
  112.  * 
  113.  *  The GetXXXAccessControl calls will return access control masks for various categories
  114.  *  of users.  Please refer to the access control document for a description of the
  115.  *  categories of users.  In general these are:
  116.  *      ThisRecordOwner         - means the identity of the record itself
  117.  *      Friends                  - means any one of the assigned friends for the record
  118.  *      AuthenticatedInDNode     - means any valid user that is an authenticated entity
  119.  *          in the DNode in which this record is located
  120.  *      AuthenticatedInDirectory - means any valid authenticated catalog user
  121.  *      Guest                      - means an unauthenticated user.
  122.  *  Bit masks for various permitted access controls are defined below.
  123.  *
  124.  *  GetXXXAccessControl calls will return access control masks for various categories of
  125.  *  users for this record. In addition they also return the level of access controls
  126.  *  that the user (who is making the GetXXXAccessControl call) has for the DNode,
  127.  *  record, or attribute type.
  128.  *
  129.  *  For records, the access control granted will be minimum of the DNode access
  130.  *  control and record access control masks.  For example, to add an attribute type to a
  131.  *  record, a user must have access control kCreateAttributeTypes at the record and
  132.  *  DNode levels.  Similarly, at the attribute type level, access controls will be the
  133.  *  minimum of the DNode, record, and attribute type access controls.
  134.  *
  135.  *  
  136.  }
  137. { access privileges bit numbers }
  138.     kSeeBit                        = 0;
  139.     kAddBit                        = 1;
  140.     kDeleteBit                    = 2;
  141.     kChangeBit                    = 3;
  142.     kRenameBit                    = 4;
  143.     kChangePrivsBit                = 5;
  144.     kSeeFoldersBit                = 6;
  145.  
  146. { Values of AccessMask }
  147.     kSeeMask                    = $00000001;
  148.     kAddMask                    = $00000002;
  149.     kDeleteMask                    = $00000004;
  150.     kChangeMask                    = $00000008;
  151.     kRenameMask                    = $00000010;
  152.     kChangePrivsMask            = $00000020;
  153.     kSeeFoldersMask                = $00000040;
  154.  
  155.     kAllPrivs                    = $0000007F;
  156.     kNoPrivs                    = 0;
  157.  
  158. {
  159.  
  160. kSupportsDNodeNumberBit:
  161. If this bit is set, a DNode can be referenced using DNodeNumbers. 
  162. RecordLocationInfo can be specified using DNodeNumber and PathName component can be nil. 
  163. If this bit is not set, a DNode can be referenced only by PathName to the DNode. In the 
  164. later case DNodeNumber component inside record location info must be set to zero.
  165.  
  166. kSupportsRecordCreationIDBit:
  167. If this bit is set, a record can be referenced by specifying CreationID 
  168. in most catalog manager calls. If this bit is not set recordName and recordType are 
  169. required in the recordID specification for all catalog manager calls.
  170.  
  171. kSupportsAttributeCreationIDBit:
  172. If this bit is set, an attribute value can be obtained by specifying it's 
  173. CreationID in Lookup call staring point and also can be used in operations 
  174. like DeleteAttributeValue and ChangeAttributeValue an Attribute can be 
  175. specified by AttributeType and CreationID.
  176.  
  177. *************************************************************************
  178. Implicit assumption with creationID's and dNodeNumbers are, when supported
  179. they are persistent and will preserved across boots and life of the system.
  180. *************************************************************************
  181.  
  182. Following three bits are for determining the sort order in enumeration.
  183. kSupportsMatchAllBit:
  184. If this bit is set, enumeration of all the records is supported
  185.  
  186. kSupportsBeginsWithBit:
  187. If this bit is set, enumeration of records matching prefix (e.g. Begin with abc)
  188. is supported
  189.  
  190. kSupportsExactMatchBit:
  191. If this bit is set, existence of a record matching exact matchNameString and recordType
  192. is supported.
  193.  
  194. kSupportsEndsWithBit:
  195. If this bit is set, enumeration of records matching suffix (e.g. end with abc)
  196. is supported.
  197.  
  198. kSupportsContainsBit:
  199. If this bit is set, enumeration of records containing a matchNameString (e.g. containing abc)
  200. is supported
  201.  
  202.  
  203. Implicit assumption in all these is, a record type can be specified either as one of the above or
  204. a type list(more then one) to match exact type.
  205. The Following four bits will indicate sort ordering in enumeration.
  206.  
  207. kSupportsOrderedEnumerationBit:
  208. If this bit is set, Enumerated records or in some order possibly in name order.
  209.  
  210. kCanSupportNameOrderBit:
  211. If this is set, catalog will support sortbyName option in Enumerate.
  212.  
  213. kCanSupportTypeOrderBit:
  214. If this bit is set, catalog will support sortbyType option in enumearte.
  215.  
  216. kSupportSortBackwardsBit:
  217. If this bit is set, catalog supports backward sorting.
  218.  
  219. kSupportIndexRatioBit:
  220. If this bit is set, it indicates that enumeration will return approximate position
  221. of a record (percentile) among all records.
  222.  
  223. kSupportsEnumerationContinueBit:
  224. If this bit is set, catalog supports enumeration continue.
  225.  
  226. kSupportsLookupContinueBit:
  227. If this bit is set, catalog supports lookup continue.
  228.  
  229. kSupportsEnumerateAttributeTypeContinueBit:
  230. If this bit is set, catalog supports EnumerateAttributeType continue.
  231.  
  232. kSupportsEnumeratePseudonymContinueBit:
  233. If this bit is set, catalog supports EnumeratePseudonym continue.
  234.  
  235. kSupportsAliasesBit:
  236. If this bit is set, catalog supports create/delte/enumerate 
  237. of Alias Records.
  238.  
  239. kSupportPseudonymBit: 
  240. If this bit is set, catalog supports create/delte/enumerate of 
  241. pseudonyms for a record.
  242.  
  243. kSupportsPartialPathNameBit:
  244. If this bit is set, catalog nodes can be specified using DNodeNumber of a 
  245. intermediate DNode and a partial name starting from that DNode to the intended 
  246. DNode.
  247.  
  248. kSupportsAuthenticationBit:
  249. If this bit is set, catalog supports authentication manager calls.
  250.  
  251. kSupportsProxiesBit:
  252. If this bit is set, catalog supports proxy related calls in authentication manager. 
  253.  
  254. kSupportsFindRecordBit:
  255. If this bit is set, catalog supports find record call.
  256.  
  257. Bits and corresponding masks are as defined below.
  258. }
  259.     kSupportsDNodeNumberBit        = 0;
  260.     kSupportsRecordCreationIDBit = 1;
  261.     kSupportsAttributeCreationIDBit = 2;
  262.     kSupportsMatchAllBit        = 3;
  263.     kSupportsBeginsWithBit        = 4;
  264.     kSupportsExactMatchBit        = 5;
  265.     kSupportsEndsWithBit        = 6;
  266.     kSupportsContainsBit        = 7;
  267.     kSupportsOrderedEnumerationBit = 8;
  268.     kCanSupportNameOrderBit        = 9;
  269.     kCanSupportTypeOrderBit        = 10;
  270.     kSupportSortBackwardsBit    = 11;
  271.     kSupportIndexRatioBit        = 12;
  272.     kSupportsEnumerationContinueBit = 13;
  273.     kSupportsLookupContinueBit    = 14;
  274.     kSupportsEnumerateAttributeTypeContinueBit = 15;
  275.     kSupportsEnumeratePseudonymContinueBit = 16;
  276.     kSupportsAliasesBit            = 17;
  277.     kSupportsPseudonymsBit        = 18;
  278.     kSupportsPartialPathNamesBit = 19;
  279.     kSupportsAuthenticationBit    = 20;
  280.     kSupportsProxiesBit            = 21;
  281.     kSupportsFindRecordBit        = 22;
  282.  
  283. { values of DirGestalt }
  284.     kSupportsDNodeNumberMask    = $00000001;
  285.     kSupportsRecordCreationIDMask = $00000002;
  286.     kSupportsAttributeCreationIDMask = $00000004;
  287.     kSupportsMatchAllMask        = $00000008;
  288.     kSupportsBeginsWithMask        = $00000010;
  289.     kSupportsExactMatchMask        = $00000020;
  290.     kSupportsEndsWithMask        = $00000040;
  291.     kSupportsContainsMask        = $00000080;
  292.     kSupportsOrderedEnumerationMask = $00000100;
  293.     kCanSupportNameOrderMask    = $00000200;
  294.     kCanSupportTypeOrderMask    = $00000400;
  295.     kSupportSortBackwardsMask    = $00000800;
  296.     kSupportIndexRatioMask        = $00001000;
  297.     kSupportsEnumerationContinueMask = $00002000;
  298.     kSupportsLookupContinueMask    = $00004000;
  299.     kSupportsEnumerateAttributeTypeContinueMask = $00008000;
  300.     kSupportsEnumeratePseudonymContinueMask = $00010000;
  301.     kSupportsAliasesMask        = $00020000;
  302.     kSupportsPseudonymsMask        = $00040000;
  303.     kSupportsPartialPathNamesMask = $00080000;
  304.     kSupportsAuthenticationMask    = $00100000;
  305.     kSupportsProxiesMask        = $00200000;
  306.     kSupportsFindRecordMask        = $00400000;
  307.  
  308.  
  309. { Values of AuthLocalIdentityOp }
  310.     kAuthLockLocalIdentityOp    = 1;
  311.     kAuthUnlockLocalIdentityOp    = 2;
  312.     kAuthLocalIdentityNameChangeOp = 3;
  313.  
  314. { Values of AuthLocalIdentityLockAction }
  315.     kAuthLockPending            = 1;
  316.     kAuthLockWillBeDone            = 2;
  317.  
  318.  
  319. { Values of AuthNotifications }
  320.     kNotifyLockBit                = 0;
  321.     kNotifyUnlockBit            = 1;
  322.     kNotifyNameChangeBit        = 2;
  323.  
  324.     kNotifyLockMask                = $00000001;
  325.     kNotifyUnlockMask            = $00000002;
  326.     kNotifyNameChangeMask        = $00000004;
  327.  
  328.     kPersonalDirectoryFileCreator = 'kl03';
  329.     kPersonalDirectoryFileType    = 'pabt';
  330.     kBusinessCardFileType        = 'bust';
  331.     kDirectoryFileType            = 'dirt';
  332.     kDNodeFileType                = 'dnod';
  333.     kDirsRootFileType            = 'drtt';
  334.     kRecordFileType                = 'rcrd';
  335.  
  336.  
  337. TYPE
  338.     DirSortOption                        = UInt16;
  339.     DirSortDirection                    = UInt16;
  340.     AccessMask                            = UInt32;
  341.     DirGestalt                            = UInt32;
  342.     AuthLocalIdentityOp                    = UInt32;
  343.     AuthLocalIdentityLockAction            = UInt32;
  344.     AuthNotifications                    = UInt32;
  345.     DNodeIDPtr = ^DNodeID;
  346.     DNodeID = RECORD
  347.         dNodeNumber:            DNodeNum;                                {  dNodenumber   }
  348.         reserved1:                LONGINT;
  349.         name:                    RStringPtr;
  350.         reserved2:                LONGINT;
  351.     END;
  352.  
  353.     DirEnumSpecPtr = ^DirEnumSpec;
  354.     DirEnumSpec = RECORD
  355.         enumFlag:                DirEnumChoices;
  356.         indexRatio:                UInt16;                                    {  Approx Record Position between 1 and 100 If supported, 0 If not supported  }
  357.         CASE INTEGER OF
  358.         0: (
  359.             recordIdentifier:    LocalRecordID;
  360.             );
  361.         1: (
  362.             dNodeIdentifier:    DNodeID;
  363.             );
  364.     END;
  365.  
  366.     DirMetaInfoPtr = ^DirMetaInfo;
  367.     DirMetaInfo = RECORD
  368.         info:                    ARRAY [0..3] OF UInt32;
  369.     END;
  370.  
  371.     SLRVPtr = ^SLRV;
  372.     SLRV = RECORD
  373.         script:                    ScriptCode;                                {    Script code in which entries are sorted  }
  374.         language:                INTEGER;                                {    Language code in which entries are sorted  }
  375.         regionCode:                INTEGER;                                {    Region code in which entries are sorted  }
  376.         version:                INTEGER;                                {   version of oce sorting software  }
  377.     END;
  378.  
  379. { Catalog types and operations }
  380. { unique identifier for an identity }
  381.     AuthIdentity                        = UInt32;
  382. { Umbrella LocalIdentity }
  383.     LocalIdentity                        = AuthIdentity;
  384. { A DES key is 8 bytes of data }
  385.     DESKeyPtr = ^DESKey;
  386.     DESKey = RECORD
  387.         a:                        UInt32;
  388.         b:                        UInt32;
  389.     END;
  390.  
  391.     RC4Key                                = ARRAY [0..7] OF SignedByte;
  392.     AuthKeyType                            = UInt32;
  393. { key type followed by its data }
  394.     AuthKeyPtr = ^AuthKey;
  395.     AuthKey = RECORD
  396.         keyType:                AuthKeyType;
  397.         CASE INTEGER OF
  398.         0: (
  399.             des:                DESKey;
  400.             );
  401.         1: (
  402.             rc4:                RC4Key;
  403.             );
  404.     END;
  405.  
  406.     AuthParamBlockPtr = ^AuthParamBlock;
  407. { Fix parameter passing convention (#1274062) ggs, 8-7-95 }
  408. {$IFC TYPED_FUNCTION_POINTERS}
  409.     AuthIOCompletionProcPtr = PROCEDURE(paramBlock: AuthParamBlockPtr);
  410. {$ELSEC}
  411.     AuthIOCompletionProcPtr = Register68kProcPtr;
  412. {$ENDC}
  413.  
  414.     AuthIOCompletionUPP = UniversalProcPtr;
  415. {****************************************************************************
  416.  
  417.  
  418.         Authentication Manager operations 
  419.  
  420. ****************************************************************************}
  421. {
  422. kAuthResolveCreationID:
  423. userRecord will contain the user information whose creationID has to be
  424. returned. A client must make this call when he does not know the creaitionID.
  425. The creationID must be set to nil before making the call. The server will attempt
  426. to match the recordid's in the data base which match the user name and
  427. type in the record.  Depending on number of matchings, following
  428. results will be returned.
  429. Exactly One Match : CreationID in RecordID and also in buffer (if buffer is given)
  430. totalMatches = actualMatches = 1.
  431. > 1 Match:
  432.     Buffer is Large Enough:
  433.     totalMatches = actualMatches
  434.     Buffer will contain all the CIDs, kOCEAmbiguousMatches error.
  435. > 1 Match:
  436.     Buffer is not Large Enough:
  437.     totalMatches > actualMatches
  438.     Buffer will contain all the CIDs (equal to actualMatches), daMoreDataError error.
  439. 0 Matches:
  440.  kOCENoSuchRecord error
  441. }
  442.     AuthResolveCreationIDPBPtr = ^AuthResolveCreationIDPB;
  443.     AuthResolveCreationIDPB = RECORD
  444.         qLink:                    Ptr;
  445.         reserved1:                LONGINT;
  446.         reserved2:                LONGINT;
  447.         ioCompletion:            AuthIOCompletionUPP;
  448.         ioResult:                OSErr;
  449.         saveA5:                    UInt32;
  450.         reqCode:                INTEGER;
  451.         reserved:                ARRAY [0..1] OF LONGINT;
  452.         serverHint:                AddrBlock;
  453.         dsRefNum:                INTEGER;
  454.         callID:                    UInt32;
  455.         identity:                AuthIdentity;
  456.         gReserved1:                LONGINT;
  457.         gReserved2:                LONGINT;
  458.         gReserved3:                LONGINT;
  459.         clientData:                LONGINT;
  460.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  461.         bufferLength:            UInt32;                                    {   --> Buffer Size to hold duplicate Info  }
  462.         buffer:                    Ptr;                                    {   --> Buffer  to hold duplicate Info  }
  463.         totalMatches:            UInt32;                                    {  <--  Total Number of matching names found  }
  464.         actualMatches:            UInt32;                                    {  <--  Number of matches returned in the buffer  }
  465.     END;
  466.  
  467. {
  468. kAuthBindSpecificIdentity:
  469. userRecord will contain the user information whose identity has to be
  470. verified. userKey will contain the userKey. An Identity is returned which
  471. binds the key and the userRecord. The identity returned can be used in the 'identity'
  472. field in the header portion (AuthParamHeader) for authenticating the Catalog and
  473. Authentication manager calls.
  474. }
  475.     AuthBindSpecificIdentityPBPtr = ^AuthBindSpecificIdentityPB;
  476.     AuthBindSpecificIdentityPB = RECORD
  477.         qLink:                    Ptr;
  478.         reserved1:                LONGINT;
  479.         reserved2:                LONGINT;
  480.         ioCompletion:            AuthIOCompletionUPP;
  481.         ioResult:                OSErr;
  482.         saveA5:                    UInt32;
  483.         reqCode:                INTEGER;
  484.         reserved:                ARRAY [0..1] OF LONGINT;
  485.         serverHint:                AddrBlock;
  486.         dsRefNum:                INTEGER;
  487.         callID:                    UInt32;
  488.         identity:                AuthIdentity;
  489.         gReserved1:                LONGINT;
  490.         gReserved2:                LONGINT;
  491.         gReserved3:                LONGINT;
  492.         clientData:                LONGINT;
  493.         userIdentity:            AuthIdentity;                            {  <--  binding identity  }
  494.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  495.         userKey:                AuthKeyPtr;                                {   --> OCE Key for the user  }
  496.     END;
  497.  
  498. {
  499. kAuthUnbindSpecificIdentity:
  500. This call will unbind the userRecord and key which were bind earlier.
  501. }
  502.     AuthUnbindSpecificIdentityPBPtr = ^AuthUnbindSpecificIdentityPB;
  503.     AuthUnbindSpecificIdentityPB = RECORD
  504.         qLink:                    Ptr;
  505.         reserved1:                LONGINT;
  506.         reserved2:                LONGINT;
  507.         ioCompletion:            AuthIOCompletionUPP;
  508.         ioResult:                OSErr;
  509.         saveA5:                    UInt32;
  510.         reqCode:                INTEGER;
  511.         reserved:                ARRAY [0..1] OF LONGINT;
  512.         serverHint:                AddrBlock;
  513.         dsRefNum:                INTEGER;
  514.         callID:                    UInt32;
  515.         identity:                AuthIdentity;
  516.         gReserved1:                LONGINT;
  517.         gReserved2:                LONGINT;
  518.         gReserved3:                LONGINT;
  519.         clientData:                LONGINT;
  520.         userIdentity:            AuthIdentity;                            {   --> identity to be deleted  }
  521.     END;
  522.  
  523.  
  524. {
  525. kAuthGetSpecificIdentityInfo:
  526. This call will return the userRecord for the given identity. Note: key is not
  527. returned because this would compromise security.
  528. }
  529.     AuthGetSpecificIdentityInfoPBPtr = ^AuthGetSpecificIdentityInfoPB;
  530.     AuthGetSpecificIdentityInfoPB = RECORD
  531.         qLink:                    Ptr;
  532.         reserved1:                LONGINT;
  533.         reserved2:                LONGINT;
  534.         ioCompletion:            AuthIOCompletionUPP;
  535.         ioResult:                OSErr;
  536.         saveA5:                    UInt32;
  537.         reqCode:                INTEGER;
  538.         reserved:                ARRAY [0..1] OF LONGINT;
  539.         serverHint:                AddrBlock;
  540.         dsRefNum:                INTEGER;
  541.         callID:                    UInt32;
  542.         identity:                AuthIdentity;
  543.         gReserved1:                LONGINT;
  544.         gReserved2:                LONGINT;
  545.         gReserved3:                LONGINT;
  546.         clientData:                LONGINT;
  547.         userIdentity:            AuthIdentity;                            {   --> identity of initiator  }
  548.         userRecord:                RecordIDPtr;                            {  <--  OCE name(Record) of the user  }
  549.     END;
  550.  
  551.  
  552. {
  553. kAuthAddKey:
  554. userRecord will contain the user information whose identity has to be
  555. created. userKey will point to the key to be created. password points to
  556. an RString containing the password used to generate the key.
  557. }
  558.     AuthAddKeyPBPtr = ^AuthAddKeyPB;
  559.     AuthAddKeyPB = RECORD
  560.         qLink:                    Ptr;
  561.         reserved1:                LONGINT;
  562.         reserved2:                LONGINT;
  563.         ioCompletion:            AuthIOCompletionUPP;
  564.         ioResult:                OSErr;
  565.         saveA5:                    UInt32;
  566.         reqCode:                INTEGER;
  567.         reserved:                ARRAY [0..1] OF LONGINT;
  568.         serverHint:                AddrBlock;
  569.         dsRefNum:                INTEGER;
  570.         callID:                    UInt32;
  571.         identity:                AuthIdentity;
  572.         gReserved1:                LONGINT;
  573.         gReserved2:                LONGINT;
  574.         gReserved3:                LONGINT;
  575.         clientData:                LONGINT;
  576.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  577.         userKey:                AuthKeyPtr;                                {  <--  OCE Key for the user  }
  578.         password:                RStringPtr;                                {   --> Pointer to password string  }
  579.     END;
  580.  
  581. {
  582. kAuthChangeKey:
  583. userRecord will contain the user information whose identity has to be
  584. created. userKey will point to the key to be created. password points to
  585. an RString containing the password used to generate the key.
  586. }
  587.     AuthChangeKeyPBPtr = ^AuthChangeKeyPB;
  588.     AuthChangeKeyPB = RECORD
  589.         qLink:                    Ptr;
  590.         reserved1:                LONGINT;
  591.         reserved2:                LONGINT;
  592.         ioCompletion:            AuthIOCompletionUPP;
  593.         ioResult:                OSErr;
  594.         saveA5:                    UInt32;
  595.         reqCode:                INTEGER;
  596.         reserved:                ARRAY [0..1] OF LONGINT;
  597.         serverHint:                AddrBlock;
  598.         dsRefNum:                INTEGER;
  599.         callID:                    UInt32;
  600.         identity:                AuthIdentity;
  601.         gReserved1:                LONGINT;
  602.         gReserved2:                LONGINT;
  603.         gReserved3:                LONGINT;
  604.         clientData:                LONGINT;
  605.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  606.         userKey:                AuthKeyPtr;                                {  <--  New OCE Key for the user  }
  607.         password:                RStringPtr;                                {   -->Pointer to the new password string  }
  608.     END;
  609.  
  610. {
  611. AuthDeleteKey:
  612. userRecord will contain the user information whose Key has to be deleted.
  613. }
  614.     AuthDeleteKeyPBPtr = ^AuthDeleteKeyPB;
  615.     AuthDeleteKeyPB = RECORD
  616.         qLink:                    Ptr;
  617.         reserved1:                LONGINT;
  618.         reserved2:                LONGINT;
  619.         ioCompletion:            AuthIOCompletionUPP;
  620.         ioResult:                OSErr;
  621.         saveA5:                    UInt32;
  622.         reqCode:                INTEGER;
  623.         reserved:                ARRAY [0..1] OF LONGINT;
  624.         serverHint:                AddrBlock;
  625.         dsRefNum:                INTEGER;
  626.         callID:                    UInt32;
  627.         identity:                AuthIdentity;
  628.         gReserved1:                LONGINT;
  629.         gReserved2:                LONGINT;
  630.         gReserved3:                LONGINT;
  631.         clientData:                LONGINT;
  632.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  633.     END;
  634.  
  635. { AuthPasswordToKey: Converts an RString into a key. }
  636.     AuthPasswordToKeyPBPtr = ^AuthPasswordToKeyPB;
  637.     AuthPasswordToKeyPB = RECORD
  638.         qLink:                    Ptr;
  639.         reserved1:                LONGINT;
  640.         reserved2:                LONGINT;
  641.         ioCompletion:            AuthIOCompletionUPP;
  642.         ioResult:                OSErr;
  643.         saveA5:                    UInt32;
  644.         reqCode:                INTEGER;
  645.         reserved:                ARRAY [0..1] OF LONGINT;
  646.         serverHint:                AddrBlock;
  647.         dsRefNum:                INTEGER;
  648.         callID:                    UInt32;
  649.         identity:                AuthIdentity;
  650.         gReserved1:                LONGINT;
  651.         gReserved2:                LONGINT;
  652.         gReserved3:                LONGINT;
  653.         clientData:                LONGINT;
  654.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  655.         key:                    AuthKeyPtr;                                {  <--   }
  656.         password:                RStringPtr;                                {   -->Pointer to the new password string  }
  657.     END;
  658.  
  659. {
  660. kAuthGetCredentials:
  661. userRecord will contain the user information whose identity has to be
  662. kMailDeletedMask. keyType (e.g. asDESKey) will indicate what type of key has to
  663. be deleted.
  664. }
  665.     AuthGetCredentialsPBPtr = ^AuthGetCredentialsPB;
  666.     AuthGetCredentialsPB = RECORD
  667.         qLink:                    Ptr;
  668.         reserved1:                LONGINT;
  669.         reserved2:                LONGINT;
  670.         ioCompletion:            AuthIOCompletionUPP;
  671.         ioResult:                OSErr;
  672.         saveA5:                    UInt32;
  673.         reqCode:                INTEGER;
  674.         reserved:                ARRAY [0..1] OF LONGINT;
  675.         serverHint:                AddrBlock;
  676.         dsRefNum:                INTEGER;
  677.         callID:                    UInt32;
  678.         identity:                AuthIdentity;
  679.         gReserved1:                LONGINT;
  680.         gReserved2:                LONGINT;
  681.         gReserved3:                LONGINT;
  682.         clientData:                LONGINT;
  683.         userIdentity:            AuthIdentity;                            {   --> identity of initiator  }
  684.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  685.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  686.         expiry:                    UTCTime;                                {  <--> desired/actual expiry  }
  687.         credentialsLength:        UInt32;                                    {  <--> max/actual credentials size  }
  688.         credentials:            Ptr;                                    {  <--  buffer where credentials are returned  }
  689.     END;
  690.  
  691. {
  692. AuthDecryptCredentialsPB:
  693. Changes:
  694. userKey is changed userIdentity.
  695. userRecord is changed to initiatorRecord. User must supply buffer
  696. to hold initiatorRecord.
  697. agentList has changed to agent. There wil be no call back.
  698. User must supply buffer to hold agent Record.
  699. An additional boolean parameter 'hasAgent' is included.
  700. Toolbox will set this if an 'Agent' record is found in the
  701. credentials. If RecordIDPtr is 'nil', no agent record will
  702. be copied. However user can examine 'hasAgent', If true user
  703. can reissue this call with apprpriate buffer for getting a recordID.
  704. agent has changed to intermediary.  User must supply buffer to hold 
  705. intermediary Record.  The toolbox will set 'hasIntermediary' if an
  706. 'intermediary' record is found in the credentials. 
  707. }
  708.     AuthDecryptCredentialsPBPtr = ^AuthDecryptCredentialsPB;
  709.     AuthDecryptCredentialsPB = RECORD
  710.         qLink:                    Ptr;
  711.         reserved1:                LONGINT;
  712.         reserved2:                LONGINT;
  713.         ioCompletion:            AuthIOCompletionUPP;
  714.         ioResult:                OSErr;
  715.         saveA5:                    UInt32;
  716.         reqCode:                INTEGER;
  717.         reserved:                ARRAY [0..1] OF LONGINT;
  718.         serverHint:                AddrBlock;
  719.         dsRefNum:                INTEGER;
  720.         callID:                    UInt32;
  721.         identity:                AuthIdentity;
  722.         gReserved1:                LONGINT;
  723.         gReserved2:                LONGINT;
  724.         gReserved3:                LONGINT;
  725.         clientData:                LONGINT;
  726.         userIdentity:            AuthIdentity;                            {   --> user's Identity  }
  727.         initiatorRecord:        RecordIDPtr;                            {  <--  OCE name of the initiator  }
  728.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  729.         expiry:                    UTCTime;                                {  <--  credentials expiry time  }
  730.         credentialsLength:        UInt32;                                    {   --> actual credentials size  }
  731.         credentials:            Ptr;                                    {   --> credentials to be decrypted  }
  732.         issueTime:                UTCTime;                                {  <--  credentials expiry time  }
  733.         hasIntermediary:        BOOLEAN;                                {  <--  if true, An intermediary Record was found in credentials  }
  734.         filler1:                BOOLEAN;
  735.         intermediary:            RecordIDPtr;                            {  <--  recordID of the intermediary  }
  736.     END;
  737.  
  738.  
  739.     AuthMakeChallengePBPtr = ^AuthMakeChallengePB;
  740.     AuthMakeChallengePB = RECORD
  741.         qLink:                    Ptr;
  742.         reserved1:                LONGINT;
  743.         reserved2:                LONGINT;
  744.         ioCompletion:            AuthIOCompletionUPP;
  745.         ioResult:                OSErr;
  746.         saveA5:                    UInt32;
  747.         reqCode:                INTEGER;
  748.         reserved:                ARRAY [0..1] OF LONGINT;
  749.         serverHint:                AddrBlock;
  750.         dsRefNum:                INTEGER;
  751.         callID:                    UInt32;
  752.         identity:                AuthIdentity;
  753.         gReserved1:                LONGINT;
  754.         gReserved2:                LONGINT;
  755.         gReserved3:                LONGINT;
  756.         clientData:                LONGINT;
  757.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  758.         challenge:                Ptr;                                    {  <--  Encrypted Challenge  }
  759.         challengeBufferLength:    UInt32;                                    {   ->length of challenge buffer  }
  760.         challengeLength:        UInt32;                                    {   <-length of Encrypted Challenge  }
  761.     END;
  762.  
  763.     AuthMakeReplyPBPtr = ^AuthMakeReplyPB;
  764.     AuthMakeReplyPB = RECORD
  765.         qLink:                    Ptr;
  766.         reserved1:                LONGINT;
  767.         reserved2:                LONGINT;
  768.         ioCompletion:            AuthIOCompletionUPP;
  769.         ioResult:                OSErr;
  770.         saveA5:                    UInt32;
  771.         reqCode:                INTEGER;
  772.         reserved:                ARRAY [0..1] OF LONGINT;
  773.         serverHint:                AddrBlock;
  774.         dsRefNum:                INTEGER;
  775.         callID:                    UInt32;
  776.         identity:                AuthIdentity;
  777.         gReserved1:                LONGINT;
  778.         gReserved2:                LONGINT;
  779.         gReserved3:                LONGINT;
  780.         clientData:                LONGINT;
  781.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  782.         challenge:                Ptr;                                    {   --> Encrypted Challenge  }
  783.         reply:                    Ptr;                                    {  <--  Encrypted Reply  }
  784.         replyBufferLength:        UInt32;                                    {   -->length of challenge buffer  }
  785.         challengeLength:        UInt32;                                    {   --> length of Encrypted Challenge  }
  786.         replyLength:            UInt32;                                    {  <--  length of Encrypted Reply  }
  787.     END;
  788.  
  789.     AuthVerifyReplyPBPtr = ^AuthVerifyReplyPB;
  790.     AuthVerifyReplyPB = RECORD
  791.         qLink:                    Ptr;
  792.         reserved1:                LONGINT;
  793.         reserved2:                LONGINT;
  794.         ioCompletion:            AuthIOCompletionUPP;
  795.         ioResult:                OSErr;
  796.         saveA5:                    UInt32;
  797.         reqCode:                INTEGER;
  798.         reserved:                ARRAY [0..1] OF LONGINT;
  799.         serverHint:                AddrBlock;
  800.         dsRefNum:                INTEGER;
  801.         callID:                    UInt32;
  802.         identity:                AuthIdentity;
  803.         gReserved1:                LONGINT;
  804.         gReserved2:                LONGINT;
  805.         gReserved3:                LONGINT;
  806.         clientData:                LONGINT;
  807.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  808.         challenge:                Ptr;                                    {   --> Encrypted Challenge  }
  809.         reply:                    Ptr;                                    {   --> Encrypted Reply  }
  810.         challengeLength:        UInt32;                                    {   --> length of Encrypted Challenge  }
  811.         replyLength:            UInt32;                                    {   --> length of Encrypted Reply  }
  812.     END;
  813.  
  814.  
  815.  
  816. {
  817. kAuthGetUTCTime:
  818. RLI will contain a valid RLI for a cluster server.
  819. UTC(GMT) time from one of the cluster server will be returned.
  820. An 'offSet' from UTC(GMT) to Mac Local Time will also be returned.
  821. If RLI is nil Map DA is used to determine UTC(GMT).
  822. Mac Local Time = theUTCTime + theUTCOffset.
  823. }
  824.     AuthGetUTCTimePBPtr = ^AuthGetUTCTimePB;
  825.     AuthGetUTCTimePB = RECORD
  826.         qLink:                    Ptr;
  827.         reserved1:                LONGINT;
  828.         reserved2:                LONGINT;
  829.         ioCompletion:            AuthIOCompletionUPP;
  830.         ioResult:                OSErr;
  831.         saveA5:                    UInt32;
  832.         reqCode:                INTEGER;
  833.         reserved:                ARRAY [0..1] OF LONGINT;
  834.         serverHint:                AddrBlock;
  835.         dsRefNum:                INTEGER;
  836.         callID:                    UInt32;
  837.         identity:                AuthIdentity;
  838.         gReserved1:                LONGINT;
  839.         gReserved2:                LONGINT;
  840.         gReserved3:                LONGINT;
  841.         clientData:                LONGINT;
  842.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI of the Node, whose server's UTC is requested  }
  843.         theUTCTime:                UTCTime;                                {  <--  current UTC(GMT) Time utc seconds since 1/1/1904  }
  844.         theUTCOffset:            UTCOffset;                                {  <--  offset from UTC(GMT) seconds EAST of Greenwich  }
  845.     END;
  846.  
  847.  
  848. {
  849. kAuthMakeProxy:
  850. A user represented bu the 'userIdentity' can make a proxy using this call.
  851. 'recipient' is the RecordID of the recipient whom user is requesting proxy.
  852. 'intermediary' is the RecordID of the intermediary holding proxy for the user.
  853. 'firstValid' is time at which proxy becomes valid.
  854. 'expiry' is the time at which proxy must expire.
  855. 'proxyLength' will have the length of the buffer pointed by 'proxy' as input.
  856. When the call completes, it will hold the actual length of proxy. If the
  857. call completes 'kOCEMoreData' error, client can reissue the call with the
  858. buffer size as 'proxyLength' returned.
  859. expiry is a suggestion, and may be adjusted to be earlier by the ADAP/OCE server.
  860. The 'proxy' obtained like this might be used by the 'intermediary' to obtain credentials
  861. for the server using TradeProxyForCredentials call.
  862. authDataLength and authData are intended for possible future work, but are
  863. ignored for now.
  864. }
  865.     AuthMakeProxyPBPtr = ^AuthMakeProxyPB;
  866.     AuthMakeProxyPB = RECORD
  867.         qLink:                    Ptr;
  868.         reserved1:                LONGINT;
  869.         reserved2:                LONGINT;
  870.         ioCompletion:            AuthIOCompletionUPP;
  871.         ioResult:                OSErr;
  872.         saveA5:                    UInt32;
  873.         reqCode:                INTEGER;
  874.         reserved:                ARRAY [0..1] OF LONGINT;
  875.         serverHint:                AddrBlock;
  876.         dsRefNum:                INTEGER;
  877.         callID:                    UInt32;
  878.         identity:                AuthIdentity;
  879.         gReserved1:                LONGINT;
  880.         gReserved2:                LONGINT;
  881.         gReserved3:                LONGINT;
  882.         clientData:                LONGINT;
  883.         userIdentity:            AuthIdentity;                            {   --> identity of principal  }
  884.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  885.         firstValid:                UTCTime;                                {   --> time at which proxy becomes valid  }
  886.         expiry:                    UTCTime;                                {   --> time at which proxy expires  }
  887.         authDataLength:            UInt32;                                    {   --> size of authorization data  }
  888.         authData:                Ptr;                                    {   --> pointer to authorization data  }
  889.         proxyLength:            UInt32;                                    {  <--> max/actual proxy size  }
  890.         proxy:                    Ptr;                                    {  <--> buffer where proxy is returned  }
  891.         intermediary:            RecordIDPtr;                            {   --> RecordID of intermediary  }
  892.     END;
  893.  
  894. {
  895. kAuthTradeProxyForCredentials:
  896. Using this call, intermediary holding a 'proxy' for a recipient may obtain credentials
  897. for that recipient. 'userIdentity' is the identity for the 'intermediary'.
  898. 'recipient' is the RecordID for whom credetials are requested.
  899. 'principal' is the RecordID of the user who created the proxy.
  900. 'proxyLength' is the length of data pointed by 'proxy.
  901. If the call is succesfull, credentials will be returned in the
  902. buffer pointed by 'credentials'. 'expiry' is the desired expiry time at input.
  903. When call succeds this will have expiry time of credentials.
  904. This is very similar to GetCredentials except that we (of course) need the proxy,
  905. but we also need the name of the principal who created the proxy.
  906. }
  907.     AuthTradeProxyForCredentialsPBPtr = ^AuthTradeProxyForCredentialsPB;
  908.     AuthTradeProxyForCredentialsPB = RECORD
  909.         qLink:                    Ptr;
  910.         reserved1:                LONGINT;
  911.         reserved2:                LONGINT;
  912.         ioCompletion:            AuthIOCompletionUPP;
  913.         ioResult:                OSErr;
  914.         saveA5:                    UInt32;
  915.         reqCode:                INTEGER;
  916.         reserved:                ARRAY [0..1] OF LONGINT;
  917.         serverHint:                AddrBlock;
  918.         dsRefNum:                INTEGER;
  919.         callID:                    UInt32;
  920.         identity:                AuthIdentity;
  921.         gReserved1:                LONGINT;
  922.         gReserved2:                LONGINT;
  923.         gReserved3:                LONGINT;
  924.         clientData:                LONGINT;
  925.         userIdentity:            AuthIdentity;                            {   --> identity of intermediary  }
  926.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  927.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  928.         expiry:                    UTCTime;                                {  <--> desired/actual expiry  }
  929.         credentialsLength:        UInt32;                                    {  <--> max/actual credentials size  }
  930.         credentials:            Ptr;                                    {  <--> buffer where credentials are returned  }
  931.         proxyLength:            UInt32;                                    {   --> actual proxy size  }
  932.         proxy:                    Ptr;                                    {   --> buffer containing proxy  }
  933.         principal:                RecordIDPtr;                            {   --> RecordID of principal  }
  934.     END;
  935.  
  936. { API for Local Identity Interface }
  937. {
  938. AuthGetLocalIdentityPB:
  939. A Collaborative application intended to work under the umbrella of LocalIdentity
  940. for the OCE toolbox will have to make this call to obtain LocalIdentity.
  941. If LocalIdentity has not been setup, then application will get
  942. 'kOCEOCESetupRequired.'. In this case application should put the dialog
  943. recommended by the OCE Setup document and guide the user through OCE Setup.
  944. If the OCESetup contains local identity, but user has not unlocked, it will get
  945. kOCELocalAuthenticationFail. In this case application should use SDPPromptForLocalIdentity
  946. to prompt user for the password.
  947. If a backGround application or stand alone code requires LocalIdentity, if it gets the
  948. OSErr from LocalIdentity and can not call SDPPromptForLocalIdentity, it should it self
  949. register with the toolbox using kAuthAddToLocalIdentityQueue call. It will be notified
  950. when a LocalIdentity gets created by a foreground application.
  951. }
  952.     AuthGetLocalIdentityPBPtr = ^AuthGetLocalIdentityPB;
  953.     AuthGetLocalIdentityPB = RECORD
  954.         qLink:                    Ptr;
  955.         reserved1:                LONGINT;
  956.         reserved2:                LONGINT;
  957.         ioCompletion:            AuthIOCompletionUPP;
  958.         ioResult:                OSErr;
  959.         saveA5:                    UInt32;
  960.         reqCode:                INTEGER;
  961.         reserved:                ARRAY [0..1] OF LONGINT;
  962.         serverHint:                AddrBlock;
  963.         dsRefNum:                INTEGER;
  964.         callID:                    UInt32;
  965.         identity:                AuthIdentity;
  966.         gReserved1:                LONGINT;
  967.         gReserved2:                LONGINT;
  968.         gReserved3:                LONGINT;
  969.         clientData:                LONGINT;
  970.         theLocalIdentity:        LocalIdentity;                            {  <--  LocalIdentity  }
  971.     END;
  972.  
  973. {
  974. kAuthUnlockLocalIdentity:
  975. The LocalIdentity can be created using this call.
  976. The userName and password correspond to the LocalIdentity setup.
  977. If the password matches, then collabIdentity will be returned.
  978. Typically SDPPromptForLocalIdentity call will make this call.
  979. All applications which are registered through kAuthAddToLocalIdentityQueue
  980. will be notified.
  981. }
  982.     AuthUnlockLocalIdentityPBPtr = ^AuthUnlockLocalIdentityPB;
  983.     AuthUnlockLocalIdentityPB = RECORD
  984.         qLink:                    Ptr;
  985.         reserved1:                LONGINT;
  986.         reserved2:                LONGINT;
  987.         ioCompletion:            AuthIOCompletionUPP;
  988.         ioResult:                OSErr;
  989.         saveA5:                    UInt32;
  990.         reqCode:                INTEGER;
  991.         reserved:                ARRAY [0..1] OF LONGINT;
  992.         serverHint:                AddrBlock;
  993.         dsRefNum:                INTEGER;
  994.         callID:                    UInt32;
  995.         identity:                AuthIdentity;
  996.         gReserved1:                LONGINT;
  997.         gReserved2:                LONGINT;
  998.         gReserved3:                LONGINT;
  999.         clientData:                LONGINT;
  1000.         theLocalIdentity:        LocalIdentity;                            {  <--  LocalIdentity  }
  1001.         userName:                RStringPtr;                                {   --> userName  }
  1002.         password:                RStringPtr;                                {   -->user password  }
  1003.     END;
  1004.  
  1005. {
  1006. kAuthLockLocalIdentity:
  1007. With this call existing LocalIdentity can be locked. If the ASDeleteLocalIdetity
  1008. call fails with 'kOCEOperationDenied' error, name will contain the application which
  1009. denied the operation. This name will be supplied by the application
  1010. when it registered through kAuthAddToLocalIdentityQueue call
  1011. }
  1012.     AuthLockLocalIdentityPBPtr = ^AuthLockLocalIdentityPB;
  1013.     AuthLockLocalIdentityPB = RECORD
  1014.         qLink:                    Ptr;
  1015.         reserved1:                LONGINT;
  1016.         reserved2:                LONGINT;
  1017.         ioCompletion:            AuthIOCompletionUPP;
  1018.         ioResult:                OSErr;
  1019.         saveA5:                    UInt32;
  1020.         reqCode:                INTEGER;
  1021.         reserved:                ARRAY [0..1] OF LONGINT;
  1022.         serverHint:                AddrBlock;
  1023.         dsRefNum:                INTEGER;
  1024.         callID:                    UInt32;
  1025.         identity:                AuthIdentity;
  1026.         gReserved1:                LONGINT;
  1027.         gReserved2:                LONGINT;
  1028.         gReserved3:                LONGINT;
  1029.         clientData:                LONGINT;
  1030.         theLocalIdentity:        LocalIdentity;                            {   --> LocalIdentity  }
  1031.         name:                    StringPtr;                                {  <--  name of the app which denied delete  }
  1032.     END;
  1033.  
  1034. {$IFC TYPED_FUNCTION_POINTERS}
  1035.     NotificationProcPtr = FUNCTION(clientData: LONGINT; callValue: AuthLocalIdentityOp; actionValue: AuthLocalIdentityLockAction; identity: LocalIdentity): BOOLEAN;
  1036. {$ELSEC}
  1037.     NotificationProcPtr = ProcPtr;
  1038. {$ENDC}
  1039.  
  1040.     NotificationUPP = UniversalProcPtr;
  1041.     NotificationProc                    = NotificationUPP;
  1042. {
  1043. kAuthAddToLocalIdentityQueue:
  1044. An application requiring notification of locking/unlocking of the
  1045. LocalIdentity can install itself using this call. The function provided
  1046. in 'notifyProc' will be called whenever the requested event happens.
  1047. When an AuthLockLocalIdentity call is made to the toolbox, the notificationProc
  1048. will be called with 'kAuthLockPending'. The application may refuse the lock by returning
  1049. a 'true' value. If all the registered entries return 'false' value, locking will be done
  1050. successfully. Otherwise 'kOCEOperationDenied' error is returned to the caller. The appName
  1051. (registered with the notificationProc) of the application which denied locking is also
  1052. returned to the caller making the AuthLockIdentity call.
  1053. }
  1054.     AuthAddToLocalIdentityQueuePBPtr = ^AuthAddToLocalIdentityQueuePB;
  1055.     AuthAddToLocalIdentityQueuePB = RECORD
  1056.         qLink:                    Ptr;
  1057.         reserved1:                LONGINT;
  1058.         reserved2:                LONGINT;
  1059.         ioCompletion:            AuthIOCompletionUPP;
  1060.         ioResult:                OSErr;
  1061.         saveA5:                    UInt32;
  1062.         reqCode:                INTEGER;
  1063.         reserved:                ARRAY [0..1] OF LONGINT;
  1064.         serverHint:                AddrBlock;
  1065.         dsRefNum:                INTEGER;
  1066.         callID:                    UInt32;
  1067.         identity:                AuthIdentity;
  1068.         gReserved1:                LONGINT;
  1069.         gReserved2:                LONGINT;
  1070.         gReserved3:                LONGINT;
  1071.         clientData:                LONGINT;
  1072.         notifyProc:                NotificationUPP;                        {   --> notification procedure  }
  1073.         notifyFlags:            AuthNotifications;                        {   --> notifyFlags  }
  1074.         appName:                StringPtr;                                {   --> name of application to be returned in Delete/Stop  }
  1075.     END;
  1076.  
  1077. {
  1078. kAuthRemoveFromLocalIdentityQueue:}
  1079.     AuthRemoveFromLocalIdentityQueuePBPtr = ^AuthRemoveFromLocalIdentityQueuePB;
  1080.     AuthRemoveFromLocalIdentityQueuePB = RECORD
  1081.         qLink:                    Ptr;
  1082.         reserved1:                LONGINT;
  1083.         reserved2:                LONGINT;
  1084.         ioCompletion:            AuthIOCompletionUPP;
  1085.         ioResult:                OSErr;
  1086.         saveA5:                    UInt32;
  1087.         reqCode:                INTEGER;
  1088.         reserved:                ARRAY [0..1] OF LONGINT;
  1089.         serverHint:                AddrBlock;
  1090.         dsRefNum:                INTEGER;
  1091.         callID:                    UInt32;
  1092.         identity:                AuthIdentity;
  1093.         gReserved1:                LONGINT;
  1094.         gReserved2:                LONGINT;
  1095.         gReserved3:                LONGINT;
  1096.         clientData:                LONGINT;
  1097.         notifyProc:                NotificationUPP;                        {   --> notification procedure  }
  1098.     END;
  1099.  
  1100. {
  1101. kAuthSetupLocalIdentity:
  1102. The LocalIdentity can be Setup using this call.
  1103. The userName and password correspond to the LocalIdentity setup.
  1104. If a LocalIdentity Setup already exists 'kOCELocalIdentitySetupExists' error
  1105. will be returned.
  1106. }
  1107.     AuthSetupLocalIdentityPBPtr = ^AuthSetupLocalIdentityPB;
  1108.     AuthSetupLocalIdentityPB = RECORD
  1109.         qLink:                    Ptr;
  1110.         reserved1:                LONGINT;
  1111.         reserved2:                LONGINT;
  1112.         ioCompletion:            AuthIOCompletionUPP;
  1113.         ioResult:                OSErr;
  1114.         saveA5:                    UInt32;
  1115.         reqCode:                INTEGER;
  1116.         reserved:                ARRAY [0..1] OF LONGINT;
  1117.         serverHint:                AddrBlock;
  1118.         dsRefNum:                INTEGER;
  1119.         callID:                    UInt32;
  1120.         identity:                AuthIdentity;
  1121.         gReserved1:                LONGINT;
  1122.         gReserved2:                LONGINT;
  1123.         gReserved3:                LONGINT;
  1124.         clientData:                LONGINT;
  1125.         aReserved:                LONGINT;                                {   --   }
  1126.         userName:                RStringPtr;                                {   --> userName  }
  1127.         password:                RStringPtr;                                {   -->user password  }
  1128.     END;
  1129.  
  1130. {
  1131. kAuthChangeLocalIdentity:
  1132. An existing LocalIdentity  Setup can be changed using this call.
  1133. The userName and password correspond to the LocalIdentity setup.
  1134. If a LocalIdentity Setup does not exists 'kOCEOCESetupRequired' error
  1135. will be returned. The user can use  kAuthSetupLocalIdentity call to setit up.
  1136. If the 'password' does not correspond to the existing setup, 'kOCELocalAuthenticationFail'
  1137. OSErr will be returned. If successful, LocalID will have new name as 'userName' and
  1138. password as 'newPassword' and if any applications has installed into 
  1139. LocalIdentityQueue with kNotifyNameChangeMask set, it will be notified with 
  1140. kAuthLocalIdentityNameChangeOp action value. 
  1141.  
  1142. }
  1143.     AuthChangeLocalIdentityPBPtr = ^AuthChangeLocalIdentityPB;
  1144.     AuthChangeLocalIdentityPB = RECORD
  1145.         qLink:                    Ptr;
  1146.         reserved1:                LONGINT;
  1147.         reserved2:                LONGINT;
  1148.         ioCompletion:            AuthIOCompletionUPP;
  1149.         ioResult:                OSErr;
  1150.         saveA5:                    UInt32;
  1151.         reqCode:                INTEGER;
  1152.         reserved:                ARRAY [0..1] OF LONGINT;
  1153.         serverHint:                AddrBlock;
  1154.         dsRefNum:                INTEGER;
  1155.         callID:                    UInt32;
  1156.         identity:                AuthIdentity;
  1157.         gReserved1:                LONGINT;
  1158.         gReserved2:                LONGINT;
  1159.         gReserved3:                LONGINT;
  1160.         clientData:                LONGINT;
  1161.         aReserved:                LONGINT;                                {   --   }
  1162.         userName:                RStringPtr;                                {   --> userName  }
  1163.         password:                RStringPtr;                                {   --> current password  }
  1164.         newPassword:            RStringPtr;                                {   --> new password  }
  1165.     END;
  1166.  
  1167. {
  1168. kAuthRemoveLocalIdentity:
  1169. An existing LocalIdentity  Setup can be removed using this call.
  1170. The userName and password correspond to the LocalIdentity setup.
  1171. If a LocalIdentity Setup does not exists 'kOCEOCESetupRequired' error
  1172. will be returned.
  1173. If the 'password' does not correspond to the existing setup, 'kOCELocalAuthenticationFail'
  1174. OSErr will be returned. If successful, LocalIdentity will be removed from the OCE Setup.
  1175. This is a very distructive operation, user must be warned enough before actually making
  1176. this call.
  1177. }
  1178.     AuthRemoveLocalIdentityPBPtr = ^AuthRemoveLocalIdentityPB;
  1179.     AuthRemoveLocalIdentityPB = RECORD
  1180.         qLink:                    Ptr;
  1181.         reserved1:                LONGINT;
  1182.         reserved2:                LONGINT;
  1183.         ioCompletion:            AuthIOCompletionUPP;
  1184.         ioResult:                OSErr;
  1185.         saveA5:                    UInt32;
  1186.         reqCode:                INTEGER;
  1187.         reserved:                ARRAY [0..1] OF LONGINT;
  1188.         serverHint:                AddrBlock;
  1189.         dsRefNum:                INTEGER;
  1190.         callID:                    UInt32;
  1191.         identity:                AuthIdentity;
  1192.         gReserved1:                LONGINT;
  1193.         gReserved2:                LONGINT;
  1194.         gReserved3:                LONGINT;
  1195.         clientData:                LONGINT;
  1196.         aReserved:                LONGINT;                                {   --   }
  1197.         userName:                RStringPtr;                                {   --> userName  }
  1198.         password:                RStringPtr;                                {   --> current password  }
  1199.     END;
  1200.  
  1201. {
  1202. kOCESetupAddDirectoryInfo:
  1203. Using this call identity for a catalog can be setup under LocalIdentity umbrella.
  1204. ASCreateLocalIdentity should have been done succesfully before making this call.    
  1205. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1206. DirAddDSAMDirectory call was made.
  1207. rid-> is the recordID in which the identity for the catalog will be established.
  1208. password-> the password associated with the rid in the catalog world.
  1209. }
  1210.     OCESetupAddDirectoryInfoPBPtr = ^OCESetupAddDirectoryInfoPB;
  1211.     OCESetupAddDirectoryInfoPB = RECORD
  1212.         qLink:                    Ptr;
  1213.         reserved1:                LONGINT;
  1214.         reserved2:                LONGINT;
  1215.         ioCompletion:            AuthIOCompletionUPP;
  1216.         ioResult:                OSErr;
  1217.         saveA5:                    UInt32;
  1218.         reqCode:                INTEGER;
  1219.         reserved:                ARRAY [0..1] OF LONGINT;
  1220.         serverHint:                AddrBlock;
  1221.         dsRefNum:                INTEGER;
  1222.         callID:                    UInt32;
  1223.         identity:                AuthIdentity;
  1224.         gReserved1:                LONGINT;
  1225.         gReserved2:                LONGINT;
  1226.         gReserved3:                LONGINT;
  1227.         clientData:                LONGINT;
  1228.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1229.         recordID:                RecordIDPtr;                            {   --> recordID for the identity  }
  1230.         password:                RStringPtr;                                {   --> password in the catalog world  }
  1231.     END;
  1232.  
  1233. {
  1234. kOCESetupChangeDirectoryInfo:
  1235. Using this call an existing identity for a catalog under LocalIdentity umbrella
  1236. can be changed.
  1237. ASCreateLocalIdentity should have been done succesfully before making this call.
  1238. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1239. DirAddDSAMDirectory call was made.
  1240. rid-> is the recordID in which the identity for the catalog will be established.
  1241. password-> the password associated with the rid in the catalog world.
  1242. newPassword -> the new password for the catalog
  1243. }
  1244.     OCESetupChangeDirectoryInfoPBPtr = ^OCESetupChangeDirectoryInfoPB;
  1245.     OCESetupChangeDirectoryInfoPB = RECORD
  1246.         qLink:                    Ptr;
  1247.         reserved1:                LONGINT;
  1248.         reserved2:                LONGINT;
  1249.         ioCompletion:            AuthIOCompletionUPP;
  1250.         ioResult:                OSErr;
  1251.         saveA5:                    UInt32;
  1252.         reqCode:                INTEGER;
  1253.         reserved:                ARRAY [0..1] OF LONGINT;
  1254.         serverHint:                AddrBlock;
  1255.         dsRefNum:                INTEGER;
  1256.         callID:                    UInt32;
  1257.         identity:                AuthIdentity;
  1258.         gReserved1:                LONGINT;
  1259.         gReserved2:                LONGINT;
  1260.         gReserved3:                LONGINT;
  1261.         clientData:                LONGINT;
  1262.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1263.         recordID:                RecordIDPtr;                            {   --> recordID for the identity  }
  1264.         password:                RStringPtr;                                {   --> password in the catalog world  }
  1265.         newPassword:            RStringPtr;                                {   --> new password in the catalog  }
  1266.     END;
  1267.  
  1268. {
  1269. kOCESetupRemoveDirectoryInfo:
  1270. Using this call an existing identity for a catalog under LocalIdentity umbrella
  1271. can be changed.
  1272. ASCreateLocalIdentity should have been done succesfully before making this call.
  1273. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1274. }
  1275.     OCESetupRemoveDirectoryInfoPBPtr = ^OCESetupRemoveDirectoryInfoPB;
  1276.     OCESetupRemoveDirectoryInfoPB = RECORD
  1277.         qLink:                    Ptr;
  1278.         reserved1:                LONGINT;
  1279.         reserved2:                LONGINT;
  1280.         ioCompletion:            AuthIOCompletionUPP;
  1281.         ioResult:                OSErr;
  1282.         saveA5:                    UInt32;
  1283.         reqCode:                INTEGER;
  1284.         reserved:                ARRAY [0..1] OF LONGINT;
  1285.         serverHint:                AddrBlock;
  1286.         dsRefNum:                INTEGER;
  1287.         callID:                    UInt32;
  1288.         identity:                AuthIdentity;
  1289.         gReserved1:                LONGINT;
  1290.         gReserved2:                LONGINT;
  1291.         gReserved3:                LONGINT;
  1292.         clientData:                LONGINT;
  1293.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1294.     END;
  1295.  
  1296. {
  1297. kOCESetupGetDirectoryInfo:
  1298. Using this call info on an existing identity for a particular catalog under LocalIdentity umbrella
  1299. can be obtained.
  1300. For the specified catalog 'directoryName' and 'discriminator', rid and nativeName will
  1301. returned. Caller must provide appropriate buffer to get back rid and nativeName.
  1302. 'password' will be returned  for  non-ADAP Catalogs.
  1303. }
  1304.     OCESetupGetDirectoryInfoPBPtr = ^OCESetupGetDirectoryInfoPB;
  1305.     OCESetupGetDirectoryInfoPB = RECORD
  1306.         qLink:                    Ptr;
  1307.         reserved1:                LONGINT;
  1308.         reserved2:                LONGINT;
  1309.         ioCompletion:            AuthIOCompletionUPP;
  1310.         ioResult:                OSErr;
  1311.         saveA5:                    UInt32;
  1312.         reqCode:                INTEGER;
  1313.         reserved:                ARRAY [0..1] OF LONGINT;
  1314.         serverHint:                AddrBlock;
  1315.         dsRefNum:                INTEGER;
  1316.         callID:                    UInt32;
  1317.         identity:                AuthIdentity;
  1318.         gReserved1:                LONGINT;
  1319.         gReserved2:                LONGINT;
  1320.         gReserved3:                LONGINT;
  1321.         clientData:                LONGINT;
  1322.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  1323.         discriminator:            DirDiscriminator;                        {   --> discriminator for the catalog  }
  1324.         recordID:                RecordIDPtr;                            {  <--  rid for the catalog identity  }
  1325.         nativeName:                RStringPtr;                                {  <--  user name in the catalog world  }
  1326.         password:                RStringPtr;                                {  <--  password in the catalog world  }
  1327.     END;
  1328.  
  1329. {****************************************************************************
  1330.  
  1331.  
  1332.          Catalog Manager operations
  1333.  
  1334.  
  1335. ****************************************************************************}
  1336.     DirParamBlockPtr = ^DirParamBlock;
  1337. {$IFC TYPED_FUNCTION_POINTERS}
  1338.     DirIOCompletionProcPtr = PROCEDURE(paramBlock: DirParamBlockPtr);
  1339. {$ELSEC}
  1340.     DirIOCompletionProcPtr = Register68kProcPtr;
  1341. {$ENDC}
  1342.  
  1343.     DirIOCompletionUPP = UniversalProcPtr;
  1344. { AddRecord }
  1345.     DirAddRecordPBPtr = ^DirAddRecordPB;
  1346.     DirAddRecordPB = RECORD
  1347.         qLink:                    Ptr;
  1348.         reserved1:                LONGINT;
  1349.         reserved2:                LONGINT;
  1350.         ioCompletion:            DirIOCompletionUPP;
  1351.         ioResult:                OSErr;
  1352.         saveA5:                    UInt32;
  1353.         reqCode:                INTEGER;
  1354.         reserved:                ARRAY [0..1] OF LONGINT;
  1355.         serverHint:                AddrBlock;
  1356.         dsRefNum:                INTEGER;
  1357.         callID:                    UInt32;
  1358.         identity:                AuthIdentity;
  1359.         gReserved1:                LONGINT;
  1360.         gReserved2:                LONGINT;
  1361.         gReserved3:                LONGINT;
  1362.         clientData:                LONGINT;
  1363.         aRecord:                RecordIDPtr;                            {   --> CreationID returned here  }
  1364.         allowDuplicate:            BOOLEAN;                                {   -->  }
  1365.         filler1:                BOOLEAN;
  1366.     END;
  1367.  
  1368.  
  1369.  
  1370. { DeleteRecord }
  1371.     DirDeleteRecordPBPtr = ^DirDeleteRecordPB;
  1372.     DirDeleteRecordPB = RECORD
  1373.         qLink:                    Ptr;
  1374.         reserved1:                LONGINT;
  1375.         reserved2:                LONGINT;
  1376.         ioCompletion:            DirIOCompletionUPP;
  1377.         ioResult:                OSErr;
  1378.         saveA5:                    UInt32;
  1379.         reqCode:                INTEGER;
  1380.         reserved:                ARRAY [0..1] OF LONGINT;
  1381.         serverHint:                AddrBlock;
  1382.         dsRefNum:                INTEGER;
  1383.         callID:                    UInt32;
  1384.         identity:                AuthIdentity;
  1385.         gReserved1:                LONGINT;
  1386.         gReserved2:                LONGINT;
  1387.         gReserved3:                LONGINT;
  1388.         clientData:                LONGINT;
  1389.         aRecord:                RecordIDPtr;                            {   -->  }
  1390.     END;
  1391.  
  1392. { aRecord must contain valid PackedRLI and a CreationID. }
  1393.  
  1394.  
  1395. {********************************************************************************}
  1396. {
  1397. DirEnumerate:
  1398. This call can be used to enumerate both DNodes and records under a specified
  1399. DNode. A DNode is specified by the PackedRLIPtr 'aRLI'.
  1400.  
  1401. startingPoint indicates where to start the enumeration.  Initially,
  1402. it should be set to a value of nil.  After some records are enumerated,
  1403. the client can issue the call again with the same aRLI and recordName and
  1404. typeList. The last received DirEnumSpec in the startingPoint field.  The server
  1405. will continue the enumeration from that record on. if user wants to get back the
  1406. value specified in the startingRecord also, the Boolean 'includeStartingPoint'
  1407. must be set to 'true'. If this is set to 'false', records specified after the
  1408. startingPoint record will be returned.
  1409.  
  1410. sortBy indicates to the server to return the records that match in name-first
  1411. or type-first order.  sortDirection indicates to the server to search in forward
  1412. or backward sort order for RecordIDs Specified.
  1413.  
  1414. RecordIDS and Enumeration Criteria:
  1415.  
  1416. PackedRLIPtr parameter 'aRLI' will be accepted for DNode
  1417. specification.
  1418.  
  1419. One RStringPtr 'nameMatchString' is provided. User is allowed to
  1420. specify a wild card in the name. WildCard specification is specified in 
  1421. matchNameHow parameter and possible values are defined in DirMatchWith Enum.
  1422.  
  1423. 'typeCount' parameter indicate how many types are in the 'typeList'.
  1424.  
  1425. 'typeList' parmeter is a pointer to an RString array of size 'typeCount'.
  1426.  
  1427. If 'typeCount' is exactly equal to one, a wild card can be specified
  1428. for the entity type; otherwise types have to be completely specified.
  1429. WildCard specification is specified in  matchNameHow parameter
  1430.  and possible values are defined in DirMatchWith Enum.
  1431.  
  1432.  
  1433. A nil value for 'startingPoint' is allowed when sortDirection specified
  1434. is 'kSortBackwards'. This was not allowed previously.
  1435.  
  1436. 'enumFlags' parameter is a bit field. The following bits can be set:
  1437.     kEnumDistinguishedNameMask to get back records in the cluster data base.
  1438.     kEnumAliasMask to get back record aliases
  1439.     kEnumPseudonymMask to get back record pseudonyms
  1440.     kEnumDNodeMask to get back any children dNodes for the DNode specified in the
  1441.     'aRLI' parameter.
  1442.     kEnumForeignDNodeMask to get back any children dNodes which have ForeignDnodes in the
  1443.     dNode specified in the 'aRLI' parameter.
  1444.  
  1445.     kEnumAll is combination of all five values and can be used to enumerate
  1446.     everything under a specified DNode.
  1447.  
  1448.  
  1449.  
  1450. The results returned for each element will consist of a DirEnumSpec.
  1451. The DirEnumSpec contains 'enumFlag' which indicates the type of entity and a
  1452. union which will have either DNodeID or LocalRecordID depending on the value of 'enumFlag'.
  1453. The 'enumFlag'  will indicate whether the returned element is a
  1454. record(kEnumDistinguishedNameMask bit) or a alias(kEnumAliasMask bit) or a
  1455. Pseudonym(kEnumPseudonymMask) or a child DNode(kEnumDNodeMask bit).  If the 'enumFlag' value
  1456. is kEnumDnodeMask, it indicates the value returned in the union is a DNodeID (i.e. 'dNodeNumber'
  1457. is the 'dNodeNumber' of the child dnode(if the catalog supports dNodeNumbers, otherwise
  1458. this will be set to zero). The name will be the child dnode name. For other values of the
  1459. 'enumFlag', the value in the union will be LocalRecordID. In addition to kEnumDnodeMask it is
  1460. possible that kEnumForeignDNodeMask is also set. This is an advisory bit and application must make
  1461. it's own decision before displaying these records. If catalog supports kSupportIndexRatioMask, it
  1462. may also return the relative position of the record (percentile of total records) in the 
  1463. indexRatio field in EnumSpec.
  1464.  
  1465.  
  1466. responseSLRV will contain the script, language, region and version of the oce sorting software.
  1467. The results will be collected in the 'getBuffer' supplied by the user.
  1468. If buffer can not hold all the data returned 'kOCEMoreData' error will be returned.
  1469.  
  1470. If user receives 'noErr' or 'kOCEMoreData', buffer will contain valid results. A user
  1471. can extract the results in the 'getBuffer' by making DirEnumerateParse' call.
  1472. }
  1473.  
  1474.     DirEnumerateGetPBPtr = ^DirEnumerateGetPB;
  1475.     DirEnumerateGetPB = RECORD
  1476.         qLink:                    Ptr;
  1477.         reserved1:                LONGINT;
  1478.         reserved2:                LONGINT;
  1479.         ioCompletion:            DirIOCompletionUPP;
  1480.         ioResult:                OSErr;
  1481.         saveA5:                    UInt32;
  1482.         reqCode:                INTEGER;
  1483.         reserved:                ARRAY [0..1] OF LONGINT;
  1484.         serverHint:                AddrBlock;
  1485.         dsRefNum:                INTEGER;
  1486.         callID:                    UInt32;
  1487.         identity:                AuthIdentity;
  1488.         gReserved1:                LONGINT;
  1489.         gReserved2:                LONGINT;
  1490.         gReserved3:                LONGINT;
  1491.         clientData:                LONGINT;
  1492.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  1493.         startingPoint:            DirEnumSpecPtr;                            {   -->  }
  1494.         sortBy:                    DirSortOption;                            {   -->  }
  1495.         sortDirection:            DirSortDirection;                        {   -->  }
  1496.         dReserved:                LONGINT;                                {   --   }
  1497.         nameMatchString:        RStringPtr;                                {   --> name from which enumeration should start  }
  1498.         typesList:                ^RStringPtr;                            {   --> list of entity types to be enumerated  }
  1499.         typeCount:                UInt32;                                    {   --> number of types in the list  }
  1500.         enumFlags:                DirEnumChoices;                            {   --> indicates what to enumerate  }
  1501.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the record specified in starting point  }
  1502.         padByte:                SInt8;
  1503.         matchNameHow:            SInt8;                                    {   --> Matching Criteria for nameMatchString  }
  1504.         matchTypeHow:            SInt8;                                    {   --> Matching Criteria for typeList  }
  1505.         getBuffer:                Ptr;                                    {   -->  }
  1506.         getBufferSize:            UInt32;                                    {   -->  }
  1507.         responseSLRV:            SLRV;                                    {   <--  response SLRV  }
  1508.     END;
  1509.  
  1510. { The EnumerateRecords call-back function is defined as follows: }
  1511. {$IFC TYPED_FUNCTION_POINTERS}
  1512.     ForEachDirEnumSpecProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR enumSpec: DirEnumSpec): BOOLEAN;
  1513. {$ELSEC}
  1514.     ForEachDirEnumSpecProcPtr = ProcPtr;
  1515. {$ENDC}
  1516.  
  1517.     ForEachDirEnumSpecUPP = UniversalProcPtr;
  1518.     ForEachDirEnumSpec                    = ForEachDirEnumSpecUPP;
  1519. {
  1520. EnumerateParse:
  1521. After an EnumerateGet call has completed, call EnumerateParse
  1522. to parse through the buffer that was filled in EnumerateGet.
  1523.  
  1524. 'eachEnumSpec' will be called each time to return to the client a
  1525. DirEnumSpec that matches the pattern for enumeration. 'enumFlag' indicates the type
  1526. of information returned in the DirEnumSpec
  1527. The clientData parameter that you pass in the parameter block will be passed
  1528. to 'forEachEnumDSSpecFunc'.  You are free to put anything in clientData - it is intended
  1529. to allow you some way to match the call-back to the original call (for
  1530. example, you make more then one aysynchronous EnumerateGet calls and you want to
  1531. associate returned results in some way).
  1532.  
  1533. The client should return FALSE from 'eachEnumSpec' to continue
  1534. processing of the EnumerateParse request.  Returning TRUE will
  1535. terminate the EnumerateParse request.
  1536.  
  1537. For synchronous calls, the call-back routine actually runs as part of the same thread
  1538. of execution as the thread that made the EnumerateParse call.  That means that the
  1539. same low-memory globals, A5, stack, etc. are in effect during the call-back
  1540. that were in effect when the call was made.  Because of this, the call-back
  1541. routine has the same restrictions as the caller of EnumerateParse:
  1542. if EnumerateParse was not called from interrupt level, then the call-
  1543. back routine can allocate memory. For asynchronous calls, call-back routine is
  1544. like a ioCompletion except that A5 will be preserved for the application.
  1545. }
  1546.     DirEnumerateParsePBPtr = ^DirEnumerateParsePB;
  1547.     DirEnumerateParsePB = RECORD
  1548.         qLink:                    Ptr;
  1549.         reserved1:                LONGINT;
  1550.         reserved2:                LONGINT;
  1551.         ioCompletion:            DirIOCompletionUPP;
  1552.         ioResult:                OSErr;
  1553.         saveA5:                    UInt32;
  1554.         reqCode:                INTEGER;
  1555.         reserved:                ARRAY [0..1] OF LONGINT;
  1556.         serverHint:                AddrBlock;
  1557.         dsRefNum:                INTEGER;
  1558.         callID:                    UInt32;
  1559.         identity:                AuthIdentity;
  1560.         gReserved1:                LONGINT;
  1561.         gReserved2:                LONGINT;
  1562.         gReserved3:                LONGINT;
  1563.         clientData:                LONGINT;
  1564.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  1565.         bReserved:                LONGINT;                                {   --   }
  1566.         cReserved:                LONGINT;                                {   --   }
  1567.         eachEnumSpec:            ForEachDirEnumSpec;                        {   -->  }
  1568.         eReserved:                LONGINT;                                {   --   }
  1569.         fReserved:                LONGINT;                                {   --   }
  1570.         gReserved:                LONGINT;                                {   --   }
  1571.         hReserved:                LONGINT;                                {   --   }
  1572.         iReserved:                LONGINT;                                {   --   }
  1573.         getBuffer:                Ptr;                                    {   -->  }
  1574.         getBufferSize:            UInt32;                                    {   -->  }
  1575.         l1Reserved:                INTEGER;                                {   --  }
  1576.         l2Reserved:                INTEGER;                                {   --   }
  1577.         l3Reserved:                INTEGER;                                {   --  }
  1578.         l4Reserved:                INTEGER;                                {   --   }
  1579.     END;
  1580.  
  1581. {
  1582.  * FindRecordGet operates similarly to DirEnumerate except it returns a list
  1583.  * of records instead of records local to a cluster.
  1584. }
  1585.     DirFindRecordGetPBPtr = ^DirFindRecordGetPB;
  1586.     DirFindRecordGetPB = RECORD
  1587.         qLink:                    Ptr;
  1588.         reserved1:                LONGINT;
  1589.         reserved2:                LONGINT;
  1590.         ioCompletion:            DirIOCompletionUPP;
  1591.         ioResult:                OSErr;
  1592.         saveA5:                    UInt32;
  1593.         reqCode:                INTEGER;
  1594.         reserved:                ARRAY [0..1] OF LONGINT;
  1595.         serverHint:                AddrBlock;
  1596.         dsRefNum:                INTEGER;
  1597.         callID:                    UInt32;
  1598.         identity:                AuthIdentity;
  1599.         gReserved1:                LONGINT;
  1600.         gReserved2:                LONGINT;
  1601.         gReserved3:                LONGINT;
  1602.         clientData:                LONGINT;
  1603.         startingPoint:            RecordIDPtr;
  1604.         reservedA:                ARRAY [0..1] OF LONGINT;
  1605.         nameMatchString:        RStringPtr;
  1606.         typesList:                ^RStringPtr;
  1607.         typeCount:                UInt32;
  1608.         reservedB:                LONGINT;
  1609.         reservedC:                INTEGER;
  1610.         matchNameHow:            SInt8;
  1611.         matchTypeHow:            SInt8;
  1612.         getBuffer:                Ptr;
  1613.         getBufferSize:            UInt32;
  1614.         directoryName:            DirectoryNamePtr;
  1615.         discriminator:            DirDiscriminator;
  1616.     END;
  1617.  
  1618. { The FindRecordParse call-back function is defined as follows: }
  1619. {$IFC TYPED_FUNCTION_POINTERS}
  1620.     ForEachRecordProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR enumSpec: DirEnumSpec; pRLI: PackedRLIPtr): BOOLEAN;
  1621. {$ELSEC}
  1622.     ForEachRecordProcPtr = ProcPtr;
  1623. {$ENDC}
  1624.  
  1625.     ForEachRecordUPP = UniversalProcPtr;
  1626.     ForEachRecord                        = ForEachRecordUPP;
  1627. {
  1628.  * This PB same as DirFindRecordGet except it includes the callback function
  1629. }
  1630.     DirFindRecordParsePBPtr = ^DirFindRecordParsePB;
  1631.     DirFindRecordParsePB = RECORD
  1632.         qLink:                    Ptr;
  1633.         reserved1:                LONGINT;
  1634.         reserved2:                LONGINT;
  1635.         ioCompletion:            DirIOCompletionUPP;
  1636.         ioResult:                OSErr;
  1637.         saveA5:                    UInt32;
  1638.         reqCode:                INTEGER;
  1639.         reserved:                ARRAY [0..1] OF LONGINT;
  1640.         serverHint:                AddrBlock;
  1641.         dsRefNum:                INTEGER;
  1642.         callID:                    UInt32;
  1643.         identity:                AuthIdentity;
  1644.         gReserved1:                LONGINT;
  1645.         gReserved2:                LONGINT;
  1646.         gReserved3:                LONGINT;
  1647.         clientData:                LONGINT;
  1648.         startingPoint:            RecordIDPtr;
  1649.         reservedA:                ARRAY [0..1] OF LONGINT;
  1650.         nameMatchString:        RStringPtr;
  1651.         typesList:                ^RStringPtr;
  1652.         typeCount:                UInt32;
  1653.         reservedB:                LONGINT;
  1654.         reservedC:                INTEGER;
  1655.         matchNameHow:            SInt8;
  1656.         matchTypeHow:            SInt8;
  1657.         getBuffer:                Ptr;
  1658.         getBufferSize:            UInt32;
  1659.         directoryName:            DirectoryNamePtr;
  1660.         discriminator:            DirDiscriminator;
  1661.         forEachRecordFunc:        ForEachRecord;
  1662.     END;
  1663.  
  1664.  
  1665.  
  1666. {
  1667. LookupGet:
  1668.  
  1669. aRecordList is an array of pointers to RecordIDs, each of which must
  1670. contain valid PackedRLI and a CreationID.  recordIDCount is
  1671. the size of this array.
  1672.  
  1673. attrTypeList is an array of pointers to AttributeTypes.  attrTypeCount is
  1674. the size of this array.
  1675.  
  1676. staringRecordIndex is the record from which to continue the lookup.
  1677. If you want to start from first record in the list, this must be 1 (not zero).
  1678. This value must always be <= recordIDCount.
  1679.  
  1680. startingAttributeIndex is the AttributeType from which we want to continue the lookup.
  1681. If you want to start from first attribute in the list, this must be 1 (not zero).
  1682. This value must always be <= attrTypeCount.
  1683.  
  1684. startingAttribute is the value of the attribute value from which we want to
  1685. continue lookup. In case of catalogs supporting creationIDs, startingAttribute
  1686. may contain only a CID. Other catalogs may require the entire value.
  1687. If a non-null cid is given and if an attribute value with that cid is not found, this
  1688. call will terminate with kOCENoSuchAttribute error. A client should not make a LookupParse call
  1689. after getting this error.
  1690.  
  1691. 'includeStartingPoint' boolean can be set to 'true' to receive the value specified in the
  1692. startingPoint in the results returned. If this is set to 'false', the value
  1693. specified in the startingAttribute will not be returned.
  1694.  
  1695. When LookupGet call fails with kOCEMoreData, the client will be able to find out where the call ended
  1696. with a subsequent LookupParse call. When the LookupParse call completes with kOCEMoreData,
  1697. lastRecordIndex, lastAttributeIndex and lastValueCID will point to the corresponding
  1698. recordID, attributeType and the CreationID of the last value returned successfully. These parameters
  1699. are exactly the same ones for the startingRecordIndex, startingAttributeIndex, and startingAttrValueCID
  1700. so they can be used in a subsequent LookupGet call to continue the lookup.
  1701.  
  1702. In an extreme case, It is possible that we had an attribute value that is too large to fit
  1703. in the client's buffer. In such cases, if it was the only thing that we tried to fit
  1704. into the buffer, the client will not able to proceed further because he will not know the
  1705. attributeCID of the attribute to continue with.  Also he does not know how big a buffer
  1706. would be needed for the next call to get this 'mondo' attribute value successfully.
  1707.  
  1708. to support this, LookupParse call will do the following:
  1709.  
  1710. If LookupGet has failed with kOCEMoreData error, LookupParse will check to make sure that
  1711. ForEachAttributeValueFunc has been called at least once. If so, the client has the option
  1712. to continue from that attribute CreationID (for PAB/ADAP) in the next LookupGet call.
  1713. However, if it was not even called once, then the attribute value may be too big to fit in the
  1714. user's buffer. In this case, lastAttrValueCID (lastAttribute) and attrSize are returned in the
  1715. parse buffer and the call will fail with kOCEMoreAttrValue. However, it is possible that
  1716. ForEachAttributeValue was not called because the user does not have read access to some of
  1717. the attributeTypes in the list, and the buffer was full before even reading the creationID of
  1718. any of the attribute values.  A kOCEMoreData error is returned.
  1719.  
  1720. The Toolbox will check for duplicate RecordIDs in the aRecordList. If found, it will return
  1721. 'daDuplicateRecordIDErr'.
  1722.  
  1723. The Toolbox will check for duplicate AttributeTypes in the attrTypeList. If found it will
  1724. return 'daDuplicateAttrTypeErr'.
  1725. }
  1726.     DirLookupGetPBPtr = ^DirLookupGetPB;
  1727.     DirLookupGetPB = RECORD
  1728.         qLink:                    Ptr;
  1729.         reserved1:                LONGINT;
  1730.         reserved2:                LONGINT;
  1731.         ioCompletion:            DirIOCompletionUPP;
  1732.         ioResult:                OSErr;
  1733.         saveA5:                    UInt32;
  1734.         reqCode:                INTEGER;
  1735.         reserved:                ARRAY [0..1] OF LONGINT;
  1736.         serverHint:                AddrBlock;
  1737.         dsRefNum:                INTEGER;
  1738.         callID:                    UInt32;
  1739.         identity:                AuthIdentity;
  1740.         gReserved1:                LONGINT;
  1741.         gReserved2:                LONGINT;
  1742.         gReserved3:                LONGINT;
  1743.         clientData:                LONGINT;
  1744.         aRecordList:            ^RecordIDPtr;                            {   --> an array of RecordID pointers  }
  1745.         attrTypeList:            ^AttributeTypePtr;                        {   --> an array of attribute types  }
  1746.         cReserved:                LONGINT;                                {   --   }
  1747.         dReserved:                LONGINT;                                {   --   }
  1748.         eReserved:                LONGINT;                                {   --   }
  1749.         fReserved:                LONGINT;                                {   --   }
  1750.         recordIDCount:            UInt32;                                    {   -->  }
  1751.         attrTypeCount:            UInt32;                                    {   -->  }
  1752.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the value specified by the starting indices  }
  1753.         padByte:                SInt8;
  1754.         i1Reserved:                INTEGER;                                {   --   }
  1755.         getBuffer:                Ptr;                                    {   -->  }
  1756.         getBufferSize:            UInt32;                                    {   -->  }
  1757.         startingRecordIndex:    UInt32;                                    {   --> start from this record  }
  1758.         startingAttrTypeIndex:    UInt32;                                    {   --> start from this attribute type  }
  1759.         startingAttribute:        Attribute;                                {   --> start from this attribute value  }
  1760.         pReserved:                LONGINT;                                {   --   }
  1761.     END;
  1762.  
  1763. { The Lookup call-back functions are defined as follows: }
  1764. {$IFC TYPED_FUNCTION_POINTERS}
  1765.     ForEachLookupRecordIDProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR recordID: RecordID): BOOLEAN;
  1766. {$ELSEC}
  1767.     ForEachLookupRecordIDProcPtr = ProcPtr;
  1768. {$ENDC}
  1769.  
  1770.     ForEachLookupRecordIDUPP = UniversalProcPtr;
  1771.     ForEachLookupRecordID                = ForEachLookupRecordIDUPP;
  1772. {$IFC TYPED_FUNCTION_POINTERS}
  1773.     ForEachAttrTypeLookupProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR attrType: AttributeType; myAttrAccMask: AccessMask): BOOLEAN;
  1774. {$ELSEC}
  1775.     ForEachAttrTypeLookupProcPtr = ProcPtr;
  1776. {$ENDC}
  1777.  
  1778.     ForEachAttrTypeLookupUPP = UniversalProcPtr;
  1779.     ForEachAttrTypeLookup                = ForEachAttrTypeLookupUPP;
  1780. {$IFC TYPED_FUNCTION_POINTERS}
  1781.     ForEachAttrValueProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR attribute: Attribute): BOOLEAN;
  1782. {$ELSEC}
  1783.     ForEachAttrValueProcPtr = ProcPtr;
  1784. {$ENDC}
  1785.  
  1786.     ForEachAttrValueUPP = UniversalProcPtr;
  1787.     ForEachAttrValue                    = ForEachAttrValueUPP;
  1788. {
  1789. LookupParse:
  1790.  
  1791. After a LookupGet call has completed, call LookupParse
  1792. to parse through the buffer that was filled in LookupGet.  The
  1793. toolbox will parse through the buffer and call the appropriate call-back routines
  1794. for each item in the getBuffer.
  1795.  
  1796. 'eachRecordID' will be called each time to return to the client one of the
  1797. RecordIDs from aRecordList.  The clientData parameter that you
  1798. pass in the parameter block will be passed to eachRecordID.
  1799. You are free to put anything in clientData - it is intended to allow
  1800. you some way to match the call-back to the original call (in case, for
  1801. example, you make simultaneous asynchronous LookupGet calls).  If you don't
  1802. want to get a call-back for each RecordID (for example, if you're looking up
  1803. attributes for only one RecordID), pass nil for eachRecordID.
  1804.  
  1805. After forEachLocalRecordIDFunc is called, eachAttrType may be called to pass an
  1806. attribute type (one from attrTypeList) that exists in the record specified
  1807. in the last eachRecordID call.  If you don't want to get a call-back for
  1808. each AttributeType (for example, if you're looking up only one attribute type,
  1809. or you prefer to read the type from the Attribute struct during the eachAttrValue
  1810. call-back routine), pass nil for eachAttrType. However access controls may
  1811. prohibit you from reading some attribute types; in that case eachAttrValue
  1812. may not be called even though the value exists. Hence the client should
  1813. supply this call-back function to see the access controls for each attribute type.
  1814.  
  1815. This will be followed by one or more calls to eachAttrValue, to pass the
  1816. type, tag, and attribute value.  NOTE THIS CHANGE:  you are no longer expected to
  1817. pass a pointer to a buffer in which to put the value.  Now you get a pointer to
  1818. the value, and you can process it within the call-back routine.
  1819. After one or more values are returned, eachAttrType may be called again to pass
  1820. another attribute type that exists in the last-specified RecordID.
  1821.  
  1822. The client should return FALSE from eachRecordID, eachAttrType, and
  1823. eachAttrValue to continue processing of the LookupParse request.  Returning TRUE
  1824. from any call-back will terminate the LookupParse request.
  1825.  
  1826. If LookupGet has failed with kOCEMoreData error, LookupParse will check to make sure that
  1827. ForEachAttributeValueFunc has been called at least once. If so, the client has the option
  1828. to continue from that attribute CreationID (for PAB/ADAP) in the next LookupGet call.
  1829. However, if it was not even called once, then the attribute value may be too big to fit in the
  1830. user's buffer. In this case, lastAttrValueCID (lastAttribute) and attrSize are returned in the
  1831. parse buffer and the call will fail with kOCEMoreAttrValue. However, it is possible that
  1832. ForEachAttributeValue was not called because the user does not have read access to some of
  1833. the attributeTypes in the list, and the buffer was full before even reading the creationID of
  1834. any of the attribute values.  A kOCEMoreData error is returned.
  1835.  
  1836. For synchronous calls, the call-back routine actually runs as part of the same thread
  1837. of execution as the thread that made the LookupParse call.  That means that the
  1838. same low-memory globals, A5, stack, etc. are in effect during the call-back
  1839. that were in effect when the call was made.  Because of this, the call-back
  1840. routine has the same restrictions as the caller of LookupParse:
  1841. if LookupParse was not called from interrupt level, then the call-
  1842. back routine can allocate memory. For asynchronous calls, call-back routine is
  1843. like a ioCompletion except that A5 will be preserved for the application.
  1844. }
  1845.     DirLookupParsePBPtr = ^DirLookupParsePB;
  1846.     DirLookupParsePB = RECORD
  1847.         qLink:                    Ptr;
  1848.         reserved1:                LONGINT;
  1849.         reserved2:                LONGINT;
  1850.         ioCompletion:            DirIOCompletionUPP;
  1851.         ioResult:                OSErr;
  1852.         saveA5:                    UInt32;
  1853.         reqCode:                INTEGER;
  1854.         reserved:                ARRAY [0..1] OF LONGINT;
  1855.         serverHint:                AddrBlock;
  1856.         dsRefNum:                INTEGER;
  1857.         callID:                    UInt32;
  1858.         identity:                AuthIdentity;
  1859.         gReserved1:                LONGINT;
  1860.         gReserved2:                LONGINT;
  1861.         gReserved3:                LONGINT;
  1862.         clientData:                LONGINT;
  1863.         aRecordList:            ^RecordIDPtr;                            {   --> must be same from the corresponding Get call  }
  1864.         attrTypeList:            ^AttributeTypePtr;                        {   --> must be same from the corresponding Get call  }
  1865.         cReserved:                LONGINT;                                {   --   }
  1866.         eachRecordID:            ForEachLookupRecordID;                    {   -->  }
  1867.         eachAttrType:            ForEachAttrTypeLookup;                    {   -->  }
  1868.         eachAttrValue:            ForEachAttrValue;                        {   -->  }
  1869.         recordIDCount:            UInt32;                                    {   --> must be same from the corresponding Get call  }
  1870.         attrTypeCount:            UInt32;                                    {   --> must be same from the corresponding Get call  }
  1871.         iReserved:                LONGINT;                                {   --   }
  1872.         getBuffer:                Ptr;                                    {   --> must be same from the corresponding Get call }
  1873.         getBufferSize:            UInt32;                                    {   --> must be same from the corresponding Get call }
  1874.         lastRecordIndex:        UInt32;                                    {  <--  last RecordID processed when parse completed  }
  1875.         lastAttributeIndex:        UInt32;                                    {  <--  last Attribute Type processed when parse completed  }
  1876.         lastAttribute:            Attribute;                                {  <--  last attribute value (with this CreationID) processed when parse completed  }
  1877.         attrSize:                UInt32;                                    {  <--  length of the attribute we did not return  }
  1878.     END;
  1879.  
  1880.  
  1881.  
  1882. { AddAttributeValue }
  1883.     DirAddAttributeValuePBPtr = ^DirAddAttributeValuePB;
  1884.     DirAddAttributeValuePB = RECORD
  1885.         qLink:                    Ptr;
  1886.         reserved1:                LONGINT;
  1887.         reserved2:                LONGINT;
  1888.         ioCompletion:            DirIOCompletionUPP;
  1889.         ioResult:                OSErr;
  1890.         saveA5:                    UInt32;
  1891.         reqCode:                INTEGER;
  1892.         reserved:                ARRAY [0..1] OF LONGINT;
  1893.         serverHint:                AddrBlock;
  1894.         dsRefNum:                INTEGER;
  1895.         callID:                    UInt32;
  1896.         identity:                AuthIdentity;
  1897.         gReserved1:                LONGINT;
  1898.         gReserved2:                LONGINT;
  1899.         gReserved3:                LONGINT;
  1900.         clientData:                LONGINT;
  1901.         aRecord:                RecordIDPtr;                            {   -->  }
  1902.         attr:                    AttributePtr;                            {   --> AttributeCreationID returned here  }
  1903.     END;
  1904.  
  1905. {
  1906. aRecord must contain valid PackedRLI and a CreationID.
  1907.  
  1908. Instead of passing type, length, and value in three separate
  1909. fields, we take a pointer to an Attribute structure that contains
  1910. all three, and has room for the AttributeCreationNumber.
  1911. The AttributeCreationID will be returned in the attr itself.
  1912.  
  1913. The AttributeTag tells the catalog service that the attribute is an RString,
  1914. binary, or a RecordID.
  1915. }
  1916. {
  1917. DeleteAttributeType:
  1918. This call is provided so that an existing AttributeType can be deleted.
  1919. If any attribute values exist for this type, they will all be deleted
  1920. (if the user has access rights to delete the values) and then the attribute type
  1921. will be deleted. Otherwise dsAccessDenied error will be returned.
  1922. }
  1923.     DirDeleteAttributeTypePBPtr = ^DirDeleteAttributeTypePB;
  1924.     DirDeleteAttributeTypePB = RECORD
  1925.         qLink:                    Ptr;
  1926.         reserved1:                LONGINT;
  1927.         reserved2:                LONGINT;
  1928.         ioCompletion:            DirIOCompletionUPP;
  1929.         ioResult:                OSErr;
  1930.         saveA5:                    UInt32;
  1931.         reqCode:                INTEGER;
  1932.         reserved:                ARRAY [0..1] OF LONGINT;
  1933.         serverHint:                AddrBlock;
  1934.         dsRefNum:                INTEGER;
  1935.         callID:                    UInt32;
  1936.         identity:                AuthIdentity;
  1937.         gReserved1:                LONGINT;
  1938.         gReserved2:                LONGINT;
  1939.         gReserved3:                LONGINT;
  1940.         clientData:                LONGINT;
  1941.         aRecord:                RecordIDPtr;                            {   -->  }
  1942.         attrType:                AttributeTypePtr;                        {   -->  }
  1943.     END;
  1944.  
  1945. {
  1946.     DeleteAttributeValue
  1947. }
  1948.     DirDeleteAttributeValuePBPtr = ^DirDeleteAttributeValuePB;
  1949.     DirDeleteAttributeValuePB = RECORD
  1950.         qLink:                    Ptr;
  1951.         reserved1:                LONGINT;
  1952.         reserved2:                LONGINT;
  1953.         ioCompletion:            DirIOCompletionUPP;
  1954.         ioResult:                OSErr;
  1955.         saveA5:                    UInt32;
  1956.         reqCode:                INTEGER;
  1957.         reserved:                ARRAY [0..1] OF LONGINT;
  1958.         serverHint:                AddrBlock;
  1959.         dsRefNum:                INTEGER;
  1960.         callID:                    UInt32;
  1961.         identity:                AuthIdentity;
  1962.         gReserved1:                LONGINT;
  1963.         gReserved2:                LONGINT;
  1964.         gReserved3:                LONGINT;
  1965.         clientData:                LONGINT;
  1966.         aRecord:                RecordIDPtr;                            {   ->  }
  1967.         attr:                    AttributePtr;                            {   ->  }
  1968.     END;
  1969.  
  1970.  
  1971.  
  1972. {
  1973.     ChangeAttributeValue:
  1974.     currentAttr ==> the attribute to be changed. For ADAS and PAB CreationID is
  1975.                     sufficient
  1976.     newAttr     ==> new value for the attribute. For ADAS and PAB 
  1977.                     CreationID field will be set when
  1978.                     the call succeesfully completes
  1979.     
  1980.     aRecord     ==> must contain valid PackedRecordLocationInfo and a CreationID.
  1981.  
  1982.  
  1983.     
  1984. }
  1985.     DirChangeAttributeValuePBPtr = ^DirChangeAttributeValuePB;
  1986.     DirChangeAttributeValuePB = RECORD
  1987.         qLink:                    Ptr;
  1988.         reserved1:                LONGINT;
  1989.         reserved2:                LONGINT;
  1990.         ioCompletion:            DirIOCompletionUPP;
  1991.         ioResult:                OSErr;
  1992.         saveA5:                    UInt32;
  1993.         reqCode:                INTEGER;
  1994.         reserved:                ARRAY [0..1] OF LONGINT;
  1995.         serverHint:                AddrBlock;
  1996.         dsRefNum:                INTEGER;
  1997.         callID:                    UInt32;
  1998.         identity:                AuthIdentity;
  1999.         gReserved1:                LONGINT;
  2000.         gReserved2:                LONGINT;
  2001.         gReserved3:                LONGINT;
  2002.         clientData:                LONGINT;
  2003.         aRecord:                RecordIDPtr;                            {   ->  }
  2004.         currentAttr:            AttributePtr;                            {   ->  }
  2005.         newAttr:                AttributePtr;                            {   ->  }
  2006.     END;
  2007.  
  2008.  
  2009. { VerifyAttributeValue }
  2010.     DirVerifyAttributeValuePBPtr = ^DirVerifyAttributeValuePB;
  2011.     DirVerifyAttributeValuePB = RECORD
  2012.         qLink:                    Ptr;
  2013.         reserved1:                LONGINT;
  2014.         reserved2:                LONGINT;
  2015.         ioCompletion:            DirIOCompletionUPP;
  2016.         ioResult:                OSErr;
  2017.         saveA5:                    UInt32;
  2018.         reqCode:                INTEGER;
  2019.         reserved:                ARRAY [0..1] OF LONGINT;
  2020.         serverHint:                AddrBlock;
  2021.         dsRefNum:                INTEGER;
  2022.         callID:                    UInt32;
  2023.         identity:                AuthIdentity;
  2024.         gReserved1:                LONGINT;
  2025.         gReserved2:                LONGINT;
  2026.         gReserved3:                LONGINT;
  2027.         clientData:                LONGINT;
  2028.         aRecord:                RecordIDPtr;                            {   -->  }
  2029.         attr:                    AttributePtr;                            {   -->  }
  2030.     END;
  2031.  
  2032. {
  2033. aRecord must contain valid PackedRLI and a CreationID.
  2034.  
  2035. The attribute type and value are passed in the attribute structure.  If the
  2036. attribute CreationID is non-zero, the server will verify that an attribute with
  2037. the specified value and creation number exists in aRecord.  If the attribute
  2038. CreationID is zero, the server will verify the attribute by type and value
  2039. alone, and return the attribute CreationID in the Attribute struct if the
  2040. attribute exists.
  2041. }
  2042.  
  2043. {
  2044. EnumerateAttributeTypesGet:
  2045. The following two calls can be used to enumerate the attribute types present in
  2046. a specified RecordID.  The first, EnumerateAttributeTypesGet, processes the request
  2047. and reads the response into getBuffer, as much as will fit.  A kOCEMoreData error will
  2048. be returned if the buffer was not large enough.  After this call completes, the
  2049. client can call EnumerateAttributeTypesParse (see below).
  2050.  
  2051. The user will able to continue from a startingPoint by setting a startingAttrType.
  2052. Typically, this should be the last value returned in EnumerateAttributeTypesParse call
  2053. when 'kOCEMoreData' is returned.
  2054.  
  2055. If 'includeStartingPoint' is true when a 'startingAttrType' is specified, the starting value
  2056. will be included in the results, if it exists. If this is set to false, this value will not
  2057. be included. AttributeTypes following this type will be returned.
  2058. }
  2059.     DirEnumerateAttributeTypesGetPBPtr = ^DirEnumerateAttributeTypesGetPB;
  2060.     DirEnumerateAttributeTypesGetPB = RECORD
  2061.         qLink:                    Ptr;
  2062.         reserved1:                LONGINT;
  2063.         reserved2:                LONGINT;
  2064.         ioCompletion:            DirIOCompletionUPP;
  2065.         ioResult:                OSErr;
  2066.         saveA5:                    UInt32;
  2067.         reqCode:                INTEGER;
  2068.         reserved:                ARRAY [0..1] OF LONGINT;
  2069.         serverHint:                AddrBlock;
  2070.         dsRefNum:                INTEGER;
  2071.         callID:                    UInt32;
  2072.         identity:                AuthIdentity;
  2073.         gReserved1:                LONGINT;
  2074.         gReserved2:                LONGINT;
  2075.         gReserved3:                LONGINT;
  2076.         clientData:                LONGINT;
  2077.         aRecord:                RecordIDPtr;                            {   -->  }
  2078.         startingAttrType:        AttributeTypePtr;                        {   --> starting point  }
  2079.         cReserved:                LONGINT;                                {   --   }
  2080.         dReserved:                LONGINT;                                {   --   }
  2081.         eReserved:                LONGINT;                                {   --   }
  2082.         fReserved:                LONGINT;                                {   --   }
  2083.         gReserved:                LONGINT;                                {   --   }
  2084.         hReserved:                LONGINT;                                {   --   }
  2085.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the attrType specified by starting point  }
  2086.         padByte:                SInt8;
  2087.         i1Reserved:                INTEGER;                                {   --   }
  2088.         getBuffer:                Ptr;                                    {   -->  }
  2089.         getBufferSize:            UInt32;                                    {   -->  }
  2090.     END;
  2091.  
  2092. { The call-back function is defined as follows: }
  2093. {$IFC TYPED_FUNCTION_POINTERS}
  2094.     ForEachAttrTypeProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR attrType: AttributeType): BOOLEAN;
  2095. {$ELSEC}
  2096.     ForEachAttrTypeProcPtr = ProcPtr;
  2097. {$ENDC}
  2098.  
  2099.     ForEachAttrTypeUPP = UniversalProcPtr;
  2100.     ForEachAttrType                        = ForEachAttrTypeUPP;
  2101. {
  2102. EnumerateAttributeTypesParse:
  2103. After an EnumerateAttributeTypesGet call has completed, call EnumerateAttributeTypesParse
  2104. to parse through the buffer that was filled in EnumerateAttributeTypesGet.  The
  2105. toolbox will parse through the buffer and call the call-back routine for
  2106. each attribute type in the getBuffer.
  2107.  
  2108. The client should return false from eachAttrType to continue
  2109. processing of the EnumerateAttributeTypesParse request.  Returning true will
  2110. terminate the EnumerateAttributeTypesParse request.  The clientData parameter that
  2111. you pass in the parameter block will be passed to eachAttrType.
  2112. You are free to put anything in clientData - it is intended to allow
  2113. you some way to match the call-back to the original call (in case, for
  2114. example, you make simultaneous asynchronous calls).
  2115.  
  2116. For synchronous calls, the call-back routine actually runs as part of the same thread
  2117. of execution as the thread that made the EnumerateAttributeTypesParse call.  That means that the
  2118. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2119. that were in effect when the call was made.  Because of this, the call-back
  2120. routine has the same restrictions as the caller of EnumerateAttributeTypesParse.
  2121. If EnumerateAttributeTypesParse was not called from interrupt level, then the call-
  2122. back routine can allocate memory. For asynchronous calls, call-back routine is
  2123. like a ioCompletion except that A5 will be preserved for the application.
  2124. }
  2125.     DirEnumerateAttributeTypesParsePBPtr = ^DirEnumerateAttributeTypesParsePB;
  2126.     DirEnumerateAttributeTypesParsePB = RECORD
  2127.         qLink:                    Ptr;
  2128.         reserved1:                LONGINT;
  2129.         reserved2:                LONGINT;
  2130.         ioCompletion:            DirIOCompletionUPP;
  2131.         ioResult:                OSErr;
  2132.         saveA5:                    UInt32;
  2133.         reqCode:                INTEGER;
  2134.         reserved:                ARRAY [0..1] OF LONGINT;
  2135.         serverHint:                AddrBlock;
  2136.         dsRefNum:                INTEGER;
  2137.         callID:                    UInt32;
  2138.         identity:                AuthIdentity;
  2139.         gReserved1:                LONGINT;
  2140.         gReserved2:                LONGINT;
  2141.         gReserved3:                LONGINT;
  2142.         clientData:                LONGINT;
  2143.         aRecord:                RecordIDPtr;                            {   --> Same as DirEnumerateAttributeTypesGetPB  }
  2144.         bReserved:                LONGINT;                                {   --   }
  2145.         cReserved:                LONGINT;                                {   --   }
  2146.         dReserved:                LONGINT;                                {   --   }
  2147.         eachAttrType:            ForEachAttrType;                        {   -->  }
  2148.         fReserved:                LONGINT;                                {   --   }
  2149.         gReserved:                LONGINT;                                {   --   }
  2150.         hReserved:                LONGINT;                                {   --   }
  2151.         iReserved:                LONGINT;                                {   --   }
  2152.         getBuffer:                Ptr;                                    {   -->  }
  2153.         getBufferSize:            UInt32;                                    {   -->  }
  2154.     END;
  2155.  
  2156. {
  2157. DirAbort:
  2158. With this call a user will able to abort an outstanding catalog service call.
  2159. A user must pass a pointer to the parameter block for the outstanding call.
  2160. In the current version of the product, the toolbox will process this call
  2161. for NetSearchADAPDirectoriesGet or FindADAPDirectoryByNetSearch calls and if possible
  2162. it will abort. For other calls for ADAP and PAB this will return 'daAbortFailErr'.
  2163. For CSAM catalogs, this call will be passed to the corresponding CSAM driver.
  2164. The CSAM driver may process this call or may return 'daAbortFailErr'. This call can
  2165. be called only in synchronous mode. Since the abort call makes references to fields in
  2166. the pb associated with the original call, this pb must not be disposed or or altered if
  2167. the original call completes before the abort call has completed.
  2168. }
  2169.     DirAbortPBPtr = ^DirAbortPB;
  2170.     DirAbortPB = RECORD
  2171.         qLink:                    Ptr;
  2172.         reserved1:                LONGINT;
  2173.         reserved2:                LONGINT;
  2174.         ioCompletion:            DirIOCompletionUPP;
  2175.         ioResult:                OSErr;
  2176.         saveA5:                    UInt32;
  2177.         reqCode:                INTEGER;
  2178.         reserved:                ARRAY [0..1] OF LONGINT;
  2179.         serverHint:                AddrBlock;
  2180.         dsRefNum:                INTEGER;
  2181.         callID:                    UInt32;
  2182.         identity:                AuthIdentity;
  2183.         gReserved1:                LONGINT;
  2184.         gReserved2:                LONGINT;
  2185.         gReserved3:                LONGINT;
  2186.         clientData:                LONGINT;
  2187.         pb:                        DirParamBlockPtr;                        {   --> pb for the call which must be aborted  }
  2188.     END;
  2189.  
  2190.  
  2191. {
  2192. AddPseudonym:
  2193. An alternate name and type can be added to a given record. If allowDuplicate
  2194. is set the name and type will be added even if the same name and type already
  2195. exists.
  2196. }
  2197.     DirAddPseudonymPBPtr = ^DirAddPseudonymPB;
  2198.     DirAddPseudonymPB = RECORD
  2199.         qLink:                    Ptr;
  2200.         reserved1:                LONGINT;
  2201.         reserved2:                LONGINT;
  2202.         ioCompletion:            DirIOCompletionUPP;
  2203.         ioResult:                OSErr;
  2204.         saveA5:                    UInt32;
  2205.         reqCode:                INTEGER;
  2206.         reserved:                ARRAY [0..1] OF LONGINT;
  2207.         serverHint:                AddrBlock;
  2208.         dsRefNum:                INTEGER;
  2209.         callID:                    UInt32;
  2210.         identity:                AuthIdentity;
  2211.         gReserved1:                LONGINT;
  2212.         gReserved2:                LONGINT;
  2213.         gReserved3:                LONGINT;
  2214.         clientData:                LONGINT;
  2215.         aRecord:                RecordIDPtr;                            {   --> RecordID to which pseudonym is to be added  }
  2216.         pseudonymName:            RStringPtr;                                {   --> new name to be added as pseudonym  }
  2217.         pseudonymType:            RStringPtr;                                {   --> new name to be added as pseudonym  }
  2218.         allowDuplicate:            BOOLEAN;                                {   -->  }
  2219.         filler1:                BOOLEAN;
  2220.     END;
  2221.  
  2222. {
  2223. DeletePseudonym:
  2224. An alternate name and type for a given record can be deleted.
  2225. }
  2226.     DirDeletePseudonymPBPtr = ^DirDeletePseudonymPB;
  2227.     DirDeletePseudonymPB = RECORD
  2228.         qLink:                    Ptr;
  2229.         reserved1:                LONGINT;
  2230.         reserved2:                LONGINT;
  2231.         ioCompletion:            DirIOCompletionUPP;
  2232.         ioResult:                OSErr;
  2233.         saveA5:                    UInt32;
  2234.         reqCode:                INTEGER;
  2235.         reserved:                ARRAY [0..1] OF LONGINT;
  2236.         serverHint:                AddrBlock;
  2237.         dsRefNum:                INTEGER;
  2238.         callID:                    UInt32;
  2239.         identity:                AuthIdentity;
  2240.         gReserved1:                LONGINT;
  2241.         gReserved2:                LONGINT;
  2242.         gReserved3:                LONGINT;
  2243.         clientData:                LONGINT;
  2244.         aRecord:                RecordIDPtr;                            {   --> RecordID to which pseudonym to be added  }
  2245.         pseudonymName:            RStringPtr;                                {   --> pseudonymName to be deleted  }
  2246.         pseudonymType:            RStringPtr;                                {   --> pseudonymType to be deleted  }
  2247.     END;
  2248.  
  2249.  
  2250. {
  2251.     AddAlias:
  2252.     This call can be used to create an alias  record. The alias
  2253.     can be created either in the same or different cluster. ADAS will not support
  2254.     this call for this release. A new catalog capability flag 'kSupportsAlias' will indicate
  2255.     if the catalog supports this call. PAB's will support this call. For the PAB implementation,
  2256.     this call will create a record with the name and type specified an aRecord.
  2257.     This call works exactly like AddRecord.
  2258.     If 'allowDuplicate' is false and another record with same name and type already exists
  2259.     'daNoDupAllowed' error will be returned.
  2260. }
  2261.     DirAddAliasPBPtr = ^DirAddAliasPB;
  2262.     DirAddAliasPB = RECORD
  2263.         qLink:                    Ptr;
  2264.         reserved1:                LONGINT;
  2265.         reserved2:                LONGINT;
  2266.         ioCompletion:            DirIOCompletionUPP;
  2267.         ioResult:                OSErr;
  2268.         saveA5:                    UInt32;
  2269.         reqCode:                INTEGER;
  2270.         reserved:                ARRAY [0..1] OF LONGINT;
  2271.         serverHint:                AddrBlock;
  2272.         dsRefNum:                INTEGER;
  2273.         callID:                    UInt32;
  2274.         identity:                AuthIdentity;
  2275.         gReserved1:                LONGINT;
  2276.         gReserved2:                LONGINT;
  2277.         gReserved3:                LONGINT;
  2278.         clientData:                LONGINT;
  2279.         aRecord:                RecordIDPtr;                            {   ->  }
  2280.         allowDuplicate:            BOOLEAN;                                {   ->  }
  2281.         filler1:                BOOLEAN;
  2282.     END;
  2283.  
  2284. {
  2285. DirFindValue:
  2286. This call can be used to find the occurrence of a value. The value
  2287. to be matched is passed in the buffer 'matchingData' field. The current
  2288. ADAP/PAB implementation will match a maximum of 32 bytes of data.
  2289. For attribute values in the PAB/ADAP implementation, only the first 32 bytes will
  2290. be used for comparing the occurrence of data. Search can be restricted to
  2291. a particular record and/or attribute type by specifying 'aRecord' or 'aType'.
  2292. After finding one occurrence, 'startingRecord' and 'startingAttribute'
  2293. can be specified to find the next occurrence of the same value.
  2294. 'sortDirection' can be specified with starting values to search forward or backward.
  2295. When a matching value is found, the 'recordFound' indicates the reccordID in which the
  2296. data occurrence was found, 'attributeFound' indicates the attribute with in which the
  2297. matching data was found. ADAP/PAB implementation returns only the type and creationID of
  2298. attributes. Catalogs which don't support creationIDs may return the
  2299. complete value; hence this call may need a buffer to hold the data. For ADAP/PAB implementations
  2300. the user has to make a DirLookup call to get the actual data. 'recordFound' and
  2301. 'attributeFound' can be used to initialize 'startingRecord' and 'startingAttribute' to
  2302. find the next occurrence of the value.
  2303. }
  2304.     DirFindValuePBPtr = ^DirFindValuePB;
  2305.     DirFindValuePB = RECORD
  2306.         qLink:                    Ptr;
  2307.         reserved1:                LONGINT;
  2308.         reserved2:                LONGINT;
  2309.         ioCompletion:            DirIOCompletionUPP;
  2310.         ioResult:                OSErr;
  2311.         saveA5:                    UInt32;
  2312.         reqCode:                INTEGER;
  2313.         reserved:                ARRAY [0..1] OF LONGINT;
  2314.         serverHint:                AddrBlock;
  2315.         dsRefNum:                INTEGER;
  2316.         callID:                    UInt32;
  2317.         identity:                AuthIdentity;
  2318.         gReserved1:                LONGINT;
  2319.         gReserved2:                LONGINT;
  2320.         gReserved3:                LONGINT;
  2321.         clientData:                LONGINT;
  2322.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  2323.         aRecord:                LocalRecordIDPtr;                        {   --> if not nil, look only in this record  }
  2324.         attrType:                AttributeTypePtr;                        {   --> if not nil, look only in this attribute type  }
  2325.         startingRecord:            LocalRecordIDPtr;                        {   --> record in which to start searching  }
  2326.         startingAttribute:        AttributePtr;                            {   --> attribute in which to start searching  }
  2327.         recordFound:            LocalRecordIDPtr;                        {  <--  record in which data was found  }
  2328.         attributeFound:            Attribute;                                {  <--  attribute in which data was found  }
  2329.         matchSize:                UInt32;                                    {   --> length of matching bytes  }
  2330.         matchingData:            Ptr;                                    {   --> data bytes to be matched in search  }
  2331.         sortDirection:            DirSortDirection;                        {   --> sort direction (forwards or backwards)  }
  2332.     END;
  2333.  
  2334.  
  2335.  
  2336. {
  2337. EnumeratePseudonymGet:
  2338. This call can be used to enumerate the existing pseudonyms for
  2339. a given record specified in 'aRecord'. A starting point can be specified
  2340. by 'startingName' and 'startingType'. If the 'includeStartingPoint' boolean
  2341. is true and a starting point is specified, the name specified by startingName
  2342. and startingType also is returned in the results, if it exists. If this is set to false,
  2343. the pseudonym in startingName and Type is not included.
  2344. Pseudonyms returned in the 'getBuffer' can be extracted by making an
  2345. EnumeratePseudonymParse call. The results will consist of a RecordID with the
  2346. name and type of the pseudonym. If the buffer could not hold all the results, then
  2347. 'kOCEMoreData' error will be returned. The user will be able to continue the call by
  2348. using the last result returned as starting point for the next call.
  2349. }
  2350.     DirEnumeratePseudonymGetPBPtr = ^DirEnumeratePseudonymGetPB;
  2351.     DirEnumeratePseudonymGetPB = RECORD
  2352.         qLink:                    Ptr;
  2353.         reserved1:                LONGINT;
  2354.         reserved2:                LONGINT;
  2355.         ioCompletion:            DirIOCompletionUPP;
  2356.         ioResult:                OSErr;
  2357.         saveA5:                    UInt32;
  2358.         reqCode:                INTEGER;
  2359.         reserved:                ARRAY [0..1] OF LONGINT;
  2360.         serverHint:                AddrBlock;
  2361.         dsRefNum:                INTEGER;
  2362.         callID:                    UInt32;
  2363.         identity:                AuthIdentity;
  2364.         gReserved1:                LONGINT;
  2365.         gReserved2:                LONGINT;
  2366.         gReserved3:                LONGINT;
  2367.         clientData:                LONGINT;
  2368.         aRecord:                RecordIDPtr;                            {   -->  }
  2369.         startingName:            RStringPtr;                                {   -->  }
  2370.         startingType:            RStringPtr;                                {   -->  }
  2371.         dReserved:                LONGINT;                                {   --   }
  2372.         eReserved:                LONGINT;                                {   --   }
  2373.         fReserved:                LONGINT;                                {   --   }
  2374.         gReserved:                LONGINT;                                {   --   }
  2375.         hReserved:                LONGINT;                                {   --   }
  2376.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the Pseudonym specified by starting point will be included  }
  2377.         padByte:                SInt8;
  2378.         i1Reserved:                INTEGER;                                {   --   }
  2379.         getBuffer:                Ptr;                                    {   -->  }
  2380.         getBufferSize:            UInt32;                                    {   -->  }
  2381.     END;
  2382.  
  2383. { The call-back function is defined as follows: }
  2384. {$IFC TYPED_FUNCTION_POINTERS}
  2385.     ForEachRecordIDProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR recordID: RecordID): BOOLEAN;
  2386. {$ELSEC}
  2387.     ForEachRecordIDProcPtr = ProcPtr;
  2388. {$ENDC}
  2389.  
  2390.     ForEachRecordIDUPP = UniversalProcPtr;
  2391.     ForEachRecordID                        = ForEachRecordIDUPP;
  2392. {
  2393. EnumeratePseudonymParse:
  2394. The pseudonyms returned in the 'getBuffer' from the EnumeratePseudonymGet call
  2395. can be extracted by using the EnumeratePseudonymParse call. 'eachRecordID'
  2396. will be called for each pseudonym.
  2397.  
  2398. Returning true from any call-back will terminate the EnumeratePseudonymParse call.
  2399.  
  2400. For synchronous calls, the call-back routine actually runs as part of the same thread
  2401. of execution as the thread that made the EnumeratePseudonymParse call.  That means that the
  2402. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2403. that were in effect when the call was made.  Because of this, the call-back
  2404. routine has the same restrictions as the caller of EnumeratePseudonymParse:
  2405. if EnumeratePseudonymParse was not called from interrupt level, then the call-
  2406. back routine can allocate memory. For asynchronous calls, call-back routine is
  2407. like a ioCompletion except that A5 will be preserved for the application.
  2408. }
  2409.     DirEnumeratePseudonymParsePBPtr = ^DirEnumeratePseudonymParsePB;
  2410.     DirEnumeratePseudonymParsePB = RECORD
  2411.         qLink:                    Ptr;
  2412.         reserved1:                LONGINT;
  2413.         reserved2:                LONGINT;
  2414.         ioCompletion:            DirIOCompletionUPP;
  2415.         ioResult:                OSErr;
  2416.         saveA5:                    UInt32;
  2417.         reqCode:                INTEGER;
  2418.         reserved:                ARRAY [0..1] OF LONGINT;
  2419.         serverHint:                AddrBlock;
  2420.         dsRefNum:                INTEGER;
  2421.         callID:                    UInt32;
  2422.         identity:                AuthIdentity;
  2423.         gReserved1:                LONGINT;
  2424.         gReserved2:                LONGINT;
  2425.         gReserved3:                LONGINT;
  2426.         clientData:                LONGINT;
  2427.         aRecord:                RecordIDPtr;                            {   --> same as DirEnumerateAliasesGetPB  }
  2428.         bReserved:                LONGINT;                                {   --   }
  2429.         cReserved:                LONGINT;                                {   --   }
  2430.         eachRecordID:            ForEachRecordID;                        {   -->  }
  2431.         eReserved:                LONGINT;                                {   --   }
  2432.         fReserved:                LONGINT;                                {   --   }
  2433.         gReserved:                LONGINT;                                {   --   }
  2434.         hReserved:                LONGINT;                                {   --   }
  2435.         iReserved:                LONGINT;                                {   --   }
  2436.         getBuffer:                Ptr;                                    {   -->  }
  2437.         getBufferSize:            UInt32;                                    {   -->  }
  2438.     END;
  2439.  
  2440.  
  2441.  
  2442. { GetNameAndType }
  2443.     DirGetNameAndTypePBPtr = ^DirGetNameAndTypePB;
  2444.     DirGetNameAndTypePB = RECORD
  2445.         qLink:                    Ptr;
  2446.         reserved1:                LONGINT;
  2447.         reserved2:                LONGINT;
  2448.         ioCompletion:            DirIOCompletionUPP;
  2449.         ioResult:                OSErr;
  2450.         saveA5:                    UInt32;
  2451.         reqCode:                INTEGER;
  2452.         reserved:                ARRAY [0..1] OF LONGINT;
  2453.         serverHint:                AddrBlock;
  2454.         dsRefNum:                INTEGER;
  2455.         callID:                    UInt32;
  2456.         identity:                AuthIdentity;
  2457.         gReserved1:                LONGINT;
  2458.         gReserved2:                LONGINT;
  2459.         gReserved3:                LONGINT;
  2460.         clientData:                LONGINT;
  2461.         aRecord:                RecordIDPtr;                            {   -->  }
  2462.     END;
  2463.  
  2464. {
  2465. aRecord must contain valid RLI and a CreationID.  It
  2466. must also contain pointers to maximum-length RStrings (name and type fields)
  2467. in which will be returned the record's distinguished name and type.
  2468. }
  2469.  
  2470. {
  2471. SetNameAndType:
  2472. This call can be used to change a name and type for a record. The record
  2473. to be renamed is specified using 'aRecord'.
  2474. 'newName' and 'newType' indicate the name and type to be set.
  2475. 'allowDuplicate' if true indicates that name is to be set even if another
  2476. name and type exactly matches the newName and newType specified.
  2477.  
  2478. 'newName' and 'newType' are required since the catalogs not supporting
  2479. CreationID require name and type fields in the recordID to identify a given
  2480. record.
  2481. }
  2482.     DirSetNameAndTypePBPtr = ^DirSetNameAndTypePB;
  2483.     DirSetNameAndTypePB = RECORD
  2484.         qLink:                    Ptr;
  2485.         reserved1:                LONGINT;
  2486.         reserved2:                LONGINT;
  2487.         ioCompletion:            DirIOCompletionUPP;
  2488.         ioResult:                OSErr;
  2489.         saveA5:                    UInt32;
  2490.         reqCode:                INTEGER;
  2491.         reserved:                ARRAY [0..1] OF LONGINT;
  2492.         serverHint:                AddrBlock;
  2493.         dsRefNum:                INTEGER;
  2494.         callID:                    UInt32;
  2495.         identity:                AuthIdentity;
  2496.         gReserved1:                LONGINT;
  2497.         gReserved2:                LONGINT;
  2498.         gReserved3:                LONGINT;
  2499.         clientData:                LONGINT;
  2500.         aRecord:                RecordIDPtr;                            {   -->  }
  2501.         allowDuplicate:            BOOLEAN;                                {   -->  }
  2502.         padByte:                SInt8;
  2503.         newName:                RStringPtr;                                {   --> new name for the record  }
  2504.         newType:                RStringPtr;                                {   --> new type for the record  }
  2505.     END;
  2506.  
  2507.  
  2508.  
  2509.  
  2510. {
  2511. DirGetMetaRecordInfo: This call can be made to obtain
  2512. the MetaRecordInfo for a given record. Information returned
  2513. is 16 bytes of OPAQUE information about the record.
  2514. }
  2515.     DirGetRecordMetaInfoPBPtr = ^DirGetRecordMetaInfoPB;
  2516.     DirGetRecordMetaInfoPB = RECORD
  2517.         qLink:                    Ptr;
  2518.         reserved1:                LONGINT;
  2519.         reserved2:                LONGINT;
  2520.         ioCompletion:            DirIOCompletionUPP;
  2521.         ioResult:                OSErr;
  2522.         saveA5:                    UInt32;
  2523.         reqCode:                INTEGER;
  2524.         reserved:                ARRAY [0..1] OF LONGINT;
  2525.         serverHint:                AddrBlock;
  2526.         dsRefNum:                INTEGER;
  2527.         callID:                    UInt32;
  2528.         identity:                AuthIdentity;
  2529.         gReserved1:                LONGINT;
  2530.         gReserved2:                LONGINT;
  2531.         gReserved3:                LONGINT;
  2532.         clientData:                LONGINT;
  2533.         aRecord:                RecordIDPtr;                            {   -->  }
  2534.         metaInfo:                DirMetaInfo;                            {  <--   }
  2535.     END;
  2536.  
  2537.  
  2538. {
  2539. DirGetDNodeMetaInfo: This call can be made to obtain
  2540. the DNodeMetaInfo for a given Packed RLI. Information returned
  2541. is 16 bytes of OPAQUE information about the DNode.
  2542. }
  2543.     DirGetDNodeMetaInfoPBPtr = ^DirGetDNodeMetaInfoPB;
  2544.     DirGetDNodeMetaInfoPB = RECORD
  2545.         qLink:                    Ptr;
  2546.         reserved1:                LONGINT;
  2547.         reserved2:                LONGINT;
  2548.         ioCompletion:            DirIOCompletionUPP;
  2549.         ioResult:                OSErr;
  2550.         saveA5:                    UInt32;
  2551.         reqCode:                INTEGER;
  2552.         reserved:                ARRAY [0..1] OF LONGINT;
  2553.         serverHint:                AddrBlock;
  2554.         dsRefNum:                INTEGER;
  2555.         callID:                    UInt32;
  2556.         identity:                AuthIdentity;
  2557.         gReserved1:                LONGINT;
  2558.         gReserved2:                LONGINT;
  2559.         gReserved3:                LONGINT;
  2560.         clientData:                LONGINT;
  2561.         pRLI:                    PackedRLIPtr;                            {   -->  }
  2562.         metaInfo:                DirMetaInfo;                            {  <--   }
  2563.     END;
  2564.  
  2565.  
  2566. {
  2567. EnumerateDirectoriesGet:
  2568. A user can enumerate all the catalogs installed. This includes installed
  2569. ADAP and CSAM catalogs. The user can specify a signature as input to restrict
  2570. the results. kDirADAPKind will return only ADAP catalogs, kDirDSAMKind
  2571. will return all CSAM catalogs. kDirAllKinds will get both ADAP & CSAM catalogs.
  2572. A specific signature (e.g. X.500) may be used to get catalogs with an X.500 signature.
  2573. The information for each catalog returned will have directoryName, discriminator and features.
  2574.  
  2575. If the user receives 'noErr' or 'kOCEMoreData', the buffer will contain valid results. A user
  2576. can extract the results in the 'getBuffer' by making an DirEnumerateDirectories call.
  2577.  
  2578. If 'kOCEMoreData' is received, the user can continue enumeration by using the last catalog and
  2579. discriminator as startingDirectoryName and staringDirDiscriminator in the next call.
  2580.  
  2581. If 'includeStartingPoint' is true and a starting point is specified,
  2582. the staring point will be returned in the result. If false, it is not included.
  2583. }
  2584.     DirEnumerateDirectoriesGetPBPtr = ^DirEnumerateDirectoriesGetPB;
  2585.     DirEnumerateDirectoriesGetPB = RECORD
  2586.         qLink:                    Ptr;
  2587.         reserved1:                LONGINT;
  2588.         reserved2:                LONGINT;
  2589.         ioCompletion:            DirIOCompletionUPP;
  2590.         ioResult:                OSErr;
  2591.         saveA5:                    UInt32;
  2592.         reqCode:                INTEGER;
  2593.         reserved:                ARRAY [0..1] OF LONGINT;
  2594.         serverHint:                AddrBlock;
  2595.         dsRefNum:                INTEGER;
  2596.         callID:                    UInt32;
  2597.         identity:                AuthIdentity;
  2598.         gReserved1:                LONGINT;
  2599.         gReserved2:                LONGINT;
  2600.         gReserved3:                LONGINT;
  2601.         clientData:                LONGINT;
  2602.         directoryKind:            OCEDirectoryKind;                        {   --> enumerate catalogs bearing this signature  }
  2603.         startingDirectoryName:    DirectoryNamePtr;                        {   --> staring catalog name  }
  2604.         startingDirDiscriminator: DirDiscriminator;                        {   --> staring catalog discriminator  }
  2605.         eReserved:                LONGINT;                                {   --   }
  2606.         fReserved:                LONGINT;                                {   --   }
  2607.         gReserved:                LONGINT;                                {   --   }
  2608.         hReserved:                LONGINT;                                {   --   }
  2609.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the catalog specified by starting point  }
  2610.         padByte:                SInt8;
  2611.         i1Reserved:                INTEGER;                                {   --   }
  2612.         getBuffer:                Ptr;                                    {   -->  }
  2613.         getBufferSize:            UInt32;                                    {   -->  }
  2614.     END;
  2615.  
  2616.  
  2617.  
  2618. {$IFC TYPED_FUNCTION_POINTERS}
  2619.     ForEachDirectoryProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR dirName: DirectoryName; {CONST}VAR discriminator: DirDiscriminator; features: DirGestalt): BOOLEAN;
  2620. {$ELSEC}
  2621.     ForEachDirectoryProcPtr = ProcPtr;
  2622. {$ENDC}
  2623.  
  2624.     ForEachDirectoryUPP = UniversalProcPtr;
  2625.     ForEachDirectory                    = ForEachDirectoryUPP;
  2626. {
  2627. EnumerateDirectoriesParse:
  2628. The catalog info returned in 'getBuffer' from the EnumerateDirectoriesGet call
  2629. can be extracted using the EnumerateDirectoriesParse call. 'eachDirectory' will
  2630. be called for each catalog.
  2631.  
  2632. Returning true from any call-back will terminate the EnumerateDirectoriesParse call.
  2633.  
  2634. For synchronous calls, the call-back routine actually runs as part of the same thread
  2635. of execution as the thread that made the EnumerateDirectoriesParse call.  That means that the
  2636. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2637. that were in effect when the call was made.  Because of this, the call-back
  2638. routine has the same restrictions as the caller of EnumerateDirectoriesParse:
  2639. if EnumerateDirectoriesParse was not called from interrupt level, then the call-
  2640. back routine can allocate memory. For asynchronous calls, call-back routine is
  2641. like a ioCompletion except that A5 will be preserved for the application.
  2642.  
  2643. eachDirectory will be called each time to return to the client a
  2644. DirectoryName, DirDiscriminator, and features for that catalog.
  2645. }
  2646.     DirEnumerateDirectoriesParsePBPtr = ^DirEnumerateDirectoriesParsePB;
  2647.     DirEnumerateDirectoriesParsePB = RECORD
  2648.         qLink:                    Ptr;
  2649.         reserved1:                LONGINT;
  2650.         reserved2:                LONGINT;
  2651.         ioCompletion:            DirIOCompletionUPP;
  2652.         ioResult:                OSErr;
  2653.         saveA5:                    UInt32;
  2654.         reqCode:                INTEGER;
  2655.         reserved:                ARRAY [0..1] OF LONGINT;
  2656.         serverHint:                AddrBlock;
  2657.         dsRefNum:                INTEGER;
  2658.         callID:                    UInt32;
  2659.         identity:                AuthIdentity;
  2660.         gReserved1:                LONGINT;
  2661.         gReserved2:                LONGINT;
  2662.         gReserved3:                LONGINT;
  2663.         clientData:                LONGINT;
  2664.         aReserved:                LONGINT;                                {   --   }
  2665.         bReserved:                LONGINT;                                {   --   }
  2666.         cReserved:                LONGINT;                                {   --   }
  2667.         dReserved:                LONGINT;                                {   --   }
  2668.         eachDirectory:            ForEachDirectory;                        {   -->  }
  2669.         fReserved:                LONGINT;                                {   --   }
  2670.         gReserved:                LONGINT;                                {   --   }
  2671.         hReserved:                LONGINT;                                {   --   }
  2672.         iReserved:                LONGINT;                                {   --   }
  2673.         getBuffer:                Ptr;                                    {   -->  }
  2674.         getBufferSize:            UInt32;                                    {   -->  }
  2675.     END;
  2676.  
  2677.  
  2678. {
  2679. The Following five call are specific to ADAP Catalogs. Toolbox
  2680. remembers a list of catalogs across boots. If any catalog service
  2681. call is intended for a ADAP catalog, then it must be in the list.
  2682. In order for managing this list, A client (Probably DE will use these
  2683. calls.
  2684. DirAddADAPDirectoryPB: Add a new ADAP catalog to the list.
  2685. DirRemoveADAPDirectory: Remove a ADAP catalog from the list.
  2686. DirNetSearchADAPDirectoriesGet:   search an internet for adas catalogs.
  2687. DirNetSearchADAPDirectoriesParse: extract the results obtained NetSearchADAPDirectoriesGet.
  2688. DirFindADAPDirectoryByNetSearch: Find a specified catalog through net search.
  2689. }
  2690. {
  2691. NetSearchADAPDirectoriesGet:
  2692. This call can be used to make a network wide search for finding ADAP catalogs.
  2693. This call will be supported only by 'ADAP' and involve highly expensive
  2694. network operations, so the user is advised to use utmost discretion before
  2695. making this call. The results will be collected in the 'getbuffer' and can be
  2696. extracted using NetSearchADAPDirectoriesParse call. The directoryName,
  2697. the directoryDiscriminator, features and serverHint (AppleTalk address for
  2698. a PathFinder serving that catalog) are collected for each catalog found
  2699. on the network. If buffer is too small to hold all the catalogs found on
  2700. the network, a 'kOCEMoreData' error will be returned.
  2701. }
  2702.     DirNetSearchADAPDirectoriesGetPBPtr = ^DirNetSearchADAPDirectoriesGetPB;
  2703.     DirNetSearchADAPDirectoriesGetPB = RECORD
  2704.         qLink:                    Ptr;
  2705.         reserved1:                LONGINT;
  2706.         reserved2:                LONGINT;
  2707.         ioCompletion:            DirIOCompletionUPP;
  2708.         ioResult:                OSErr;
  2709.         saveA5:                    UInt32;
  2710.         reqCode:                INTEGER;
  2711.         reserved:                ARRAY [0..1] OF LONGINT;
  2712.         serverHint:                AddrBlock;
  2713.         dsRefNum:                INTEGER;
  2714.         callID:                    UInt32;
  2715.         identity:                AuthIdentity;
  2716.         gReserved1:                LONGINT;
  2717.         gReserved2:                LONGINT;
  2718.         gReserved3:                LONGINT;
  2719.         clientData:                LONGINT;
  2720.         getBuffer:                Ptr;                                    {   -->  }
  2721.         getBufferSize:            UInt32;                                    {   -->  }
  2722.         cReserved:                LONGINT;                                {   --   }
  2723.     END;
  2724.  
  2725. {$IFC TYPED_FUNCTION_POINTERS}
  2726.     ForEachADAPDirectoryProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR dirName: DirectoryName; {CONST}VAR discriminator: DirDiscriminator; features: DirGestalt; serverHint: AddrBlock): BOOLEAN;
  2727. {$ELSEC}
  2728.     ForEachADAPDirectoryProcPtr = ProcPtr;
  2729. {$ENDC}
  2730.  
  2731.     ForEachADAPDirectoryUPP = UniversalProcPtr;
  2732.     ForEachADAPDirectory                = ForEachADAPDirectoryUPP;
  2733. {
  2734. DirNetSearchADAPDirectoriesParse:
  2735. This call can be used to extract the results obtained in the 'getBuffer'.
  2736. The directoryName, directoryDiscriminator, features and
  2737. serverHint (AppleTalk address for a PathFinder serving that catalog) are
  2738. returned in each call-back. These values may be used to make an
  2739. AddADAPDirectory call.
  2740.  
  2741. Returning TRUE from any call-back will terminate the NetSearchADAPDirectoriesParse request.
  2742.  
  2743. For synchronous calls, the call-back routine actually runs as part of the same thread
  2744. of execution as the thread that made the DirNetSearchADAPDirectoriesParse call. That means that the
  2745. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2746. that were in effect when the call was made.  Because of this, the call-back
  2747. routine has the same restrictions as the caller of DirNetSearchADAPDirectoriesParse:
  2748. if DirNetSearchADAPDirectoriesParse was not called from interrupt level, then the call-
  2749. back routine can allocate memory. For asynchronous calls, call-back routine is
  2750. like a ioCompletion except that A5 will be preserved for the application.
  2751. }
  2752.     DirNetSearchADAPDirectoriesParsePBPtr = ^DirNetSearchADAPDirectoriesParsePB;
  2753.     DirNetSearchADAPDirectoriesParsePB = RECORD
  2754.         qLink:                    Ptr;
  2755.         reserved1:                LONGINT;
  2756.         reserved2:                LONGINT;
  2757.         ioCompletion:            DirIOCompletionUPP;
  2758.         ioResult:                OSErr;
  2759.         saveA5:                    UInt32;
  2760.         reqCode:                INTEGER;
  2761.         reserved:                ARRAY [0..1] OF LONGINT;
  2762.         serverHint:                AddrBlock;
  2763.         dsRefNum:                INTEGER;
  2764.         callID:                    UInt32;
  2765.         identity:                AuthIdentity;
  2766.         gReserved1:                LONGINT;
  2767.         gReserved2:                LONGINT;
  2768.         gReserved3:                LONGINT;
  2769.         clientData:                LONGINT;
  2770.         getBuffer:                Ptr;                                    {   -->  }
  2771.         getBufferSize:            UInt32;                                    {   -->  }
  2772.         eachADAPDirectory:        ForEachADAPDirectory;                    {   -->  }
  2773.     END;
  2774.  
  2775. {
  2776. DirFindADAPDirectoryByNetSearch:
  2777. This call can be used to make a network wide search to find an ADAP catalog.
  2778. This call will be supported only by 'ADAP' and involves highly expensive
  2779. network operations, so the user is advised to use utmost discretion before
  2780. making this call. The catalog is specified using directoryName and discriminator.
  2781. If 'addToOCESetup' is true, the catalog will be automatically added to the setup
  2782. list and will be visible through the EnumerateDirectories call and also
  2783. also a creationID to the directoryRecord will be returned.
  2784. If this parameter is set to 'false', the catalog will be added to temporary list
  2785. and will be available for making other catalog service calls. The catalogs
  2786. which are not in the preference catalog list will not be visible through the
  2787. EnumerateDirectories call.
  2788. }
  2789.     DirFindADAPDirectoryByNetSearchPBPtr = ^DirFindADAPDirectoryByNetSearchPB;
  2790.     DirFindADAPDirectoryByNetSearchPB = RECORD
  2791.         qLink:                    Ptr;
  2792.         reserved1:                LONGINT;
  2793.         reserved2:                LONGINT;
  2794.         ioCompletion:            DirIOCompletionUPP;
  2795.         ioResult:                OSErr;
  2796.         saveA5:                    UInt32;
  2797.         reqCode:                INTEGER;
  2798.         reserved:                ARRAY [0..1] OF LONGINT;
  2799.         serverHint:                AddrBlock;
  2800.         dsRefNum:                INTEGER;
  2801.         callID:                    UInt32;
  2802.         identity:                AuthIdentity;
  2803.         gReserved1:                LONGINT;
  2804.         gReserved2:                LONGINT;
  2805.         gReserved3:                LONGINT;
  2806.         clientData:                LONGINT;
  2807.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2808.         discriminator:            DirDiscriminator;                        {   --> discriminate between dup catalog names  }
  2809.         addToOCESetup:            BOOLEAN;                                {   --> add this catalog to OCE Setup List  }
  2810.         padByte:                SInt8;
  2811.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  2812.     END;
  2813.  
  2814.  
  2815. {
  2816. DirAddADAPDirectory:
  2817. The catalog specified by 'directoryName' and 'discriminator' will be
  2818. added to the list of catalogs maintained by the Toolbox. Once added,
  2819. the catalog is available across boots, until the catalog is removed
  2820. explicitly through a DirRemoveADAPDirectory call.
  2821. If 'serverHint' is not nil, the address provided will be used
  2822. to contact a PathFinder for the catalog specified.
  2823. If 'serverHint' is nil or does not point to a valid PathFinder server
  2824. for that catalog, this call will fail.
  2825. If 'addToOCESetup' is true, the catalog will be automatically added to the setup
  2826. catalog list and will be visible through EnumerateDirectories calls and
  2827. also a creationID to the directoryRecord will be returned.
  2828. If this parameter is set to 'false', catalog will be added to temprary list
  2829. and will be available for making other catalog service calls. The catalogs
  2830. which are not in the setup  list will not be visible through
  2831. EnumerateDirectories call.
  2832. }
  2833.     DirAddADAPDirectoryPBPtr = ^DirAddADAPDirectoryPB;
  2834.     DirAddADAPDirectoryPB = RECORD
  2835.         qLink:                    Ptr;
  2836.         reserved1:                LONGINT;
  2837.         reserved2:                LONGINT;
  2838.         ioCompletion:            DirIOCompletionUPP;
  2839.         ioResult:                OSErr;
  2840.         saveA5:                    UInt32;
  2841.         reqCode:                INTEGER;
  2842.         reserved:                ARRAY [0..1] OF LONGINT;
  2843.         serverHint:                AddrBlock;
  2844.         dsRefNum:                INTEGER;
  2845.         callID:                    UInt32;
  2846.         identity:                AuthIdentity;
  2847.         gReserved1:                LONGINT;
  2848.         gReserved2:                LONGINT;
  2849.         gReserved3:                LONGINT;
  2850.         clientData:                LONGINT;
  2851.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2852.         discriminator:            DirDiscriminator;                        {   --> discriminate between dup catalog names  }
  2853.         addToOCESetup:            BOOLEAN;                                {   --> add this catalog to OCE Setup  }
  2854.         padByte:                SInt8;
  2855.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  2856.     END;
  2857.  
  2858.  
  2859.  
  2860. {
  2861. GetDirectoryInfo:
  2862. DirGetDirectoryInfo will do:
  2863.  
  2864. If a 'dsRefNum' is non-Zero, the catalog information for
  2865.     the corresponding  PAB will be  returned.
  2866.  If 'dsRefNum' is zero and 'serverHint' is non-zero, If the
  2867.  'serverHint' points to a valid ADAP Catalog Server(Path Finder),
  2868.  the catalog information (i.e. directoryName, discriminator, features)
  2869.  for that catalog will be returned.
  2870.     If a  valid catalog name and discriminator are provided
  2871.     features (Set of capability flags) for that catalog will be returned.
  2872. }
  2873.     DirGetDirectoryInfoPBPtr = ^DirGetDirectoryInfoPB;
  2874.     DirGetDirectoryInfoPB = RECORD
  2875.         qLink:                    Ptr;
  2876.         reserved1:                LONGINT;
  2877.         reserved2:                LONGINT;
  2878.         ioCompletion:            DirIOCompletionUPP;
  2879.         ioResult:                OSErr;
  2880.         saveA5:                    UInt32;
  2881.         reqCode:                INTEGER;
  2882.         reserved:                ARRAY [0..1] OF LONGINT;
  2883.         serverHint:                AddrBlock;
  2884.         dsRefNum:                INTEGER;
  2885.         callID:                    UInt32;
  2886.         identity:                AuthIdentity;
  2887.         gReserved1:                LONGINT;
  2888.         gReserved2:                LONGINT;
  2889.         gReserved3:                LONGINT;
  2890.         clientData:                LONGINT;
  2891.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2892.         discriminator:            DirDiscriminator;                        {  <--> descriminate between dup catalog names  }
  2893.         features:                DirGestalt;                                {  <--  capability bit flags  }
  2894.     END;
  2895.  
  2896.  
  2897. {
  2898.  * Note on Access Controls:
  2899.  * Access control is based on a list model.
  2900.  * You can get access controls list which gives dsObject and accMask for each dsObject.
  2901.  * GetAccessControl can be limited to currently supplied identity by setting forCurrentUserOnly.
  2902.  * There are special DSObjects are defined in ADASTypes.h for each of the category
  2903.  * supported in ADAS Catalogs. (kOwner, kFriends, kAuthenticatedToCluster, 
  2904.  * kAuthenticatedToDirectory, kGuest) and DUGetActlDSSpec call can be used
  2905.  * to obtain appropraiate DSSpec before making set calls to ADAS catalogs.
  2906.  *
  2907.  }
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913. {
  2914.     GetDNodeAccessControlGet:
  2915.     This call can be done to get back access control list for a DNode.
  2916.     pRLI -> RLI of the DNode whose access control list is sought
  2917.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  2918.                       the identity parameter will be returned other wise entire list
  2919.                       will be returned.
  2920.     startingDsObj  -> If this is not nil, list should be started after this object.
  2921.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  2922.                               results.
  2923.                               
  2924.     The results will be collected in the 'getBuffer' supplied by the user.
  2925.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  2926.      
  2927.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  2928.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  2929.     
  2930.     Results returned for each DSObject will contain DSSpecPtr and three sets of access mask. 
  2931.  
  2932. }
  2933.  
  2934.     DirGetDNodeAccessControlGetPBPtr = ^DirGetDNodeAccessControlGetPB;
  2935.     DirGetDNodeAccessControlGetPB = RECORD
  2936.         qLink:                    Ptr;
  2937.         reserved1:                LONGINT;
  2938.         reserved2:                LONGINT;
  2939.         ioCompletion:            DirIOCompletionUPP;
  2940.         ioResult:                OSErr;
  2941.         saveA5:                    UInt32;
  2942.         reqCode:                INTEGER;
  2943.         reserved:                ARRAY [0..1] OF LONGINT;
  2944.         serverHint:                AddrBlock;
  2945.         dsRefNum:                INTEGER;
  2946.         callID:                    UInt32;
  2947.         identity:                AuthIdentity;
  2948.         gReserved1:                LONGINT;
  2949.         gReserved2:                LONGINT;
  2950.         gReserved3:                LONGINT;
  2951.         clientData:                LONGINT;
  2952.         pRLI:                    PackedRLIPtr;                            {   -> RLI of the cluster whose access control list is sought   }
  2953.         bReserved:                LONGINT;                                {   -- unused  }
  2954.         cReserved:                LONGINT;                                {   -- unused  }
  2955.         dReserved:                LONGINT;                                {   -- unused  }
  2956.         eResreved:                LONGINT;                                {  -->  }
  2957.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  2958.         filler1:                BOOLEAN;
  2959.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  2960.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the DsObject specified in starting point  }
  2961.         filler2:                BOOLEAN;
  2962.         getBuffer:                Ptr;                                    {     ->  }
  2963.         getBufferSize:            UInt32;                                    {   ->  }
  2964.     END;
  2965.  
  2966. { The Access Control call-back function is defined as follows: }
  2967. {$IFC TYPED_FUNCTION_POINTERS}
  2968.     ForEachDNodeAccessControlProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; defaultRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask): BOOLEAN;
  2969. {$ELSEC}
  2970.     ForEachDNodeAccessControlProcPtr = ProcPtr;
  2971. {$ENDC}
  2972.  
  2973.     ForEachDNodeAccessControlUPP = UniversalProcPtr;
  2974.     ForEachDNodeAccessControl            = ForEachDNodeAccessControlUPP;
  2975. {
  2976.     GetDNodeAccessControlParse:
  2977.     After an GetDNodeAccessControlGet call has completed, 
  2978.     call GetDNodeAccessControlParse to parse through the buffer that
  2979.     that was filled in GetDNodeAccessControlGet.
  2980.     
  2981.     'eachObject' will be called each time to return to the client a
  2982.     DsObject and a set of three accMasks (three long words) for that object.
  2983.     Acceesmasks returned apply to the dsObject in the callback :
  2984.     1. Currently Active Access mask for the specified DNode.
  2985.     2. Default Access mask for any Record in the DNode
  2986.     3. Default Access mask for any Attribute in the DNode
  2987.     The clientData parameter that you pass in the parameter block will be passed
  2988.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  2989.     to allow you some way to match the call-back to the original call (for
  2990.     example, you make more then one aysynchronous GetDNodeAccessControlGet calls and you want to
  2991.     associate returned results in some way).
  2992.     
  2993.     The client should return FALSE from 'eachObject' to continue
  2994.     processing of the GetDNodeAccessControlParse request.  Returning TRUE will
  2995.     terminate the GetDNodeAccessControlParse request.
  2996.  
  2997.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  2998.     of execution as the thread that made the GetDNodeAccessControlParse call.  That means that the
  2999.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  3000.     that were in effect when the call was made.  Because of this, the call-back
  3001.     routine has the same restrictions as the caller of GetDNodeAccessControlParse:
  3002.     if GetDNodeAccessControlParse was not called from interrupt level, then the call-
  3003.     back routine can allocate memory. For asynchronous calls, call-back routine is
  3004.     like a ioCompletion except that A5 will be preserved for the application.
  3005.  
  3006.  
  3007. }
  3008.  
  3009.     DirGetDNodeAccessControlParsePBPtr = ^DirGetDNodeAccessControlParsePB;
  3010.     DirGetDNodeAccessControlParsePB = RECORD
  3011.         qLink:                    Ptr;
  3012.         reserved1:                LONGINT;
  3013.         reserved2:                LONGINT;
  3014.         ioCompletion:            DirIOCompletionUPP;
  3015.         ioResult:                OSErr;
  3016.         saveA5:                    UInt32;
  3017.         reqCode:                INTEGER;
  3018.         reserved:                ARRAY [0..1] OF LONGINT;
  3019.         serverHint:                AddrBlock;
  3020.         dsRefNum:                INTEGER;
  3021.         callID:                    UInt32;
  3022.         identity:                AuthIdentity;
  3023.         gReserved1:                LONGINT;
  3024.         gReserved2:                LONGINT;
  3025.         gReserved3:                LONGINT;
  3026.         clientData:                LONGINT;
  3027.         pRLI:                    PackedRLIPtr;                            {   -> RLI of the cluster   }
  3028.         bReserved:                LONGINT;                                {   -- unused  }
  3029.         cReserved:                LONGINT;                                {   -- unused  }
  3030.         dReserved:                LONGINT;                                {   -- unused  }
  3031.         eachObject:                ForEachDNodeAccessControl;                {  -->  }
  3032.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3033.         filler1:                BOOLEAN;
  3034.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3035.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3036.         filler2:                BOOLEAN;
  3037.         getBuffer:                Ptr;                                    {     ->  }
  3038.         getBufferSize:            UInt32;                                    {   ->  }
  3039.     END;
  3040.  
  3041. {
  3042.     GetRecordAccessControlGet:
  3043.     This call can be done to get back access control list for a RecordID.
  3044.     aRecord -> RecordID to which access control list is sought
  3045.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  3046.                       the identity parameter will be returned other wise entire list
  3047.                       will be returned.
  3048.     startingDsObj  -> If this is not nil, list should be started after this object.
  3049.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  3050.                               results.
  3051.                               
  3052.     The results will be collected in the 'getBuffer' supplied by the user.
  3053.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  3054.      
  3055.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  3056.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  3057.     
  3058.     Results returned for each DSObject will contain DSSpecPtr and accMask. 
  3059.  
  3060. }
  3061.  
  3062.     DirGetRecordAccessControlGetPBPtr = ^DirGetRecordAccessControlGetPB;
  3063.     DirGetRecordAccessControlGetPB = RECORD
  3064.         qLink:                    Ptr;
  3065.         reserved1:                LONGINT;
  3066.         reserved2:                LONGINT;
  3067.         ioCompletion:            DirIOCompletionUPP;
  3068.         ioResult:                OSErr;
  3069.         saveA5:                    UInt32;
  3070.         reqCode:                INTEGER;
  3071.         reserved:                ARRAY [0..1] OF LONGINT;
  3072.         serverHint:                AddrBlock;
  3073.         dsRefNum:                INTEGER;
  3074.         callID:                    UInt32;
  3075.         identity:                AuthIdentity;
  3076.         gReserved1:                LONGINT;
  3077.         gReserved2:                LONGINT;
  3078.         gReserved3:                LONGINT;
  3079.         clientData:                LONGINT;
  3080.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3081.         bReserved:                LONGINT;                                {   -- unused  }
  3082.         cReserved:                LONGINT;                                {   -- unused  }
  3083.         dReserved:                LONGINT;                                {   -- unused  }
  3084.         eResreved:                LONGINT;                                {  -->  }
  3085.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3086.         filler1:                BOOLEAN;
  3087.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3088.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3089.         filler2:                BOOLEAN;
  3090.         getBuffer:                Ptr;                                    {     ->  }
  3091.         getBufferSize:            UInt32;                                    {   ->  }
  3092.     END;
  3093.  
  3094. { The Access Control call-back function is defined as follows: }
  3095. {$IFC TYPED_FUNCTION_POINTERS}
  3096.     ForEachRecordAccessControlProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask): BOOLEAN;
  3097. {$ELSEC}
  3098.     ForEachRecordAccessControlProcPtr = ProcPtr;
  3099. {$ENDC}
  3100.  
  3101.     ForEachRecordAccessControlUPP = UniversalProcPtr;
  3102.     ForEachRecordAccessControl            = ForEachRecordAccessControlUPP;
  3103. {
  3104.     GetRecordAccessControlParse:
  3105.     After an GetRecordAccessControlGet call has completed, 
  3106.     call GetRecordAccessControlParse to parse through the buffer that
  3107.     that was filled in GetRecordAccessControlGet.
  3108.     
  3109.     'eachObject' will be called each time to return to the client a
  3110.     DsObject and a set of three accMasks (three long words) for that object.
  3111.     Acceesmasks returned apply to the dsObject in the callback :
  3112.     1. Active Access mask for the DNode Containing the Record.
  3113.     2. Active Access mask for the Record specified.
  3114.     3. Defualt Access mask for Attributes in the record.
  3115.     The clientData parameter that you pass in the parameter block will be passed
  3116.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  3117.     to allow you some way to match the call-back to the original call (for
  3118.     example, you make more then one aysynchronous GetRecordAccessControlGet calls and you want to
  3119.     associate returned results in some way).
  3120.     
  3121.     The client should return FALSE from 'eachObject' to continue
  3122.     processing of the GetRecordAccessControlParse request.  Returning TRUE will
  3123.     terminate the GetRecordAccessControlParse request.
  3124.  
  3125.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  3126.     of execution as the thread that made the GetRecordAccessControlParse call.  That means that the
  3127.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  3128.     that were in effect when the call was made.  Because of this, the call-back
  3129.     routine has the same restrictions as the caller of GetRecordAccessControlParse:
  3130.     if GetRecordAccessControlParse was not called from interrupt level, then the call-
  3131.     back routine can allocate memory. For asynchronous calls, call-back routine is
  3132.     like a ioCompletion except that A5 will be preserved for the application.
  3133.  
  3134.  
  3135. }
  3136.  
  3137.     DirGetRecordAccessControlParsePBPtr = ^DirGetRecordAccessControlParsePB;
  3138.     DirGetRecordAccessControlParsePB = RECORD
  3139.         qLink:                    Ptr;
  3140.         reserved1:                LONGINT;
  3141.         reserved2:                LONGINT;
  3142.         ioCompletion:            DirIOCompletionUPP;
  3143.         ioResult:                OSErr;
  3144.         saveA5:                    UInt32;
  3145.         reqCode:                INTEGER;
  3146.         reserved:                ARRAY [0..1] OF LONGINT;
  3147.         serverHint:                AddrBlock;
  3148.         dsRefNum:                INTEGER;
  3149.         callID:                    UInt32;
  3150.         identity:                AuthIdentity;
  3151.         gReserved1:                LONGINT;
  3152.         gReserved2:                LONGINT;
  3153.         gReserved3:                LONGINT;
  3154.         clientData:                LONGINT;
  3155.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3156.         bReserved:                LONGINT;                                {   -- unused  }
  3157.         cReserved:                LONGINT;                                {   -- unused  }
  3158.         dReserved:                LONGINT;                                {   -- unused  }
  3159.         eachObject:                ForEachRecordAccessControl;                {  -->  }
  3160.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3161.         filler1:                BOOLEAN;
  3162.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3163.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3164.         filler2:                BOOLEAN;
  3165.         getBuffer:                Ptr;                                    {     ->  }
  3166.         getBufferSize:            UInt32;                                    {   ->  }
  3167.     END;
  3168.  
  3169. {
  3170.     GetAttributeAccessControlGet:
  3171.     This call can be done to get back access control list for a attributeType with in a RecordID.
  3172.     aRecord -> RecordID to which access control list is sought
  3173.     aType    -> Attribute Type to which access controls are sought
  3174.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  3175.                       the identity parameter will be returned other wise entire list
  3176.                       will be returned.
  3177.     startingDsObj  -> If this is not nil, list should be started after this object.
  3178.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  3179.                               results.
  3180.                               
  3181.     The results will be collected in the 'getBuffer' supplied by the user.
  3182.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  3183.      
  3184.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  3185.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  3186.     
  3187.     Results returned for each DSObject will contain DSSpecPtr and accMask. 
  3188.  
  3189. }
  3190.  
  3191.     DirGetAttributeAccessControlGetPBPtr = ^DirGetAttributeAccessControlGetPB;
  3192.     DirGetAttributeAccessControlGetPB = RECORD
  3193.         qLink:                    Ptr;
  3194.         reserved1:                LONGINT;
  3195.         reserved2:                LONGINT;
  3196.         ioCompletion:            DirIOCompletionUPP;
  3197.         ioResult:                OSErr;
  3198.         saveA5:                    UInt32;
  3199.         reqCode:                INTEGER;
  3200.         reserved:                ARRAY [0..1] OF LONGINT;
  3201.         serverHint:                AddrBlock;
  3202.         dsRefNum:                INTEGER;
  3203.         callID:                    UInt32;
  3204.         identity:                AuthIdentity;
  3205.         gReserved1:                LONGINT;
  3206.         gReserved2:                LONGINT;
  3207.         gReserved3:                LONGINT;
  3208.         clientData:                LONGINT;
  3209.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3210.         aType:                    AttributeTypePtr;                        {   -> Attribute Type to which access controls are sought           }
  3211.         cReserved:                LONGINT;                                {   -- unused  }
  3212.         dReserved:                LONGINT;                                {   -- unused  }
  3213.         eResreved:                LONGINT;                                {  -->  }
  3214.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3215.         filler1:                BOOLEAN;
  3216.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3217.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3218.         filler2:                BOOLEAN;
  3219.         getBuffer:                Ptr;                                    {     ->  }
  3220.         getBufferSize:            UInt32;                                    {   ->  }
  3221.     END;
  3222.  
  3223. { The Access Control call-back function is defined as follows: }
  3224. {$IFC TYPED_FUNCTION_POINTERS}
  3225.     ForEachAttributeAccessControlProcPtr = FUNCTION(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; activeAttributeAccMask: AccessMask): BOOLEAN;
  3226. {$ELSEC}
  3227.     ForEachAttributeAccessControlProcPtr = ProcPtr;
  3228. {$ENDC}
  3229.  
  3230.     ForEachAttributeAccessControlUPP = UniversalProcPtr;
  3231.     ForEachAttributeAccessControl        = ForEachAttributeAccessControlUPP;
  3232. {
  3233.     GetAttributeAccessControlParse:
  3234.     After an GetAttributeAccessControlGet call has completed, 
  3235.     call GetAttributeAccessControlParse to parse through the buffer that
  3236.     that was filled in GetAttributeAccessControlGet.
  3237.     
  3238.     'eachObject' will be called each time to return to the client a
  3239.     DsObject and a set of three accMasks (three long words) for that object.
  3240.     Acceesmasks returned apply to the dsObject in the callback :
  3241.     1. Active Access mask for the DNode Containing the Attribute.
  3242.     2. Active Access mask for the Record in the Containing the Attribute.
  3243.     3. Active Access mask for the specified Attribute.
  3244.     The clientData parameter that you pass in the parameter block will be passed
  3245.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  3246.     to allow you some way to match the call-back to the original call (for
  3247.     example, you make more then one aysynchronous GetAttributeAccessControlGet calls and you want to
  3248.     associate returned results in some way).
  3249.     
  3250.     The client should return FALSE from 'eachObject' to continue
  3251.     processing of the GetAttributeAccessControlParse request.  Returning TRUE will
  3252.     terminate the GetAttributeAccessControlParse request.
  3253.  
  3254.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  3255.     of execution as the thread that made the GetAttributeAccessControlParse call.  That means that the
  3256.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  3257.     that were in effect when the call was made.  Because of this, the call-back
  3258.     routine has the same restrictions as the caller of GetAttributeAccessControlParse:
  3259.     if GetAttributeAccessControlParse was not called from interrupt level, then the call-
  3260.     back routine can allocate memory. For asynchronous calls, call-back routine is
  3261.     like a ioCompletion except that A5 will be preserved for the application.
  3262.  
  3263.  
  3264. }
  3265.  
  3266.     DirGetAttributeAccessControlParsePBPtr = ^DirGetAttributeAccessControlParsePB;
  3267.     DirGetAttributeAccessControlParsePB = RECORD
  3268.         qLink:                    Ptr;
  3269.         reserved1:                LONGINT;
  3270.         reserved2:                LONGINT;
  3271.         ioCompletion:            DirIOCompletionUPP;
  3272.         ioResult:                OSErr;
  3273.         saveA5:                    UInt32;
  3274.         reqCode:                INTEGER;
  3275.         reserved:                ARRAY [0..1] OF LONGINT;
  3276.         serverHint:                AddrBlock;
  3277.         dsRefNum:                INTEGER;
  3278.         callID:                    UInt32;
  3279.         identity:                AuthIdentity;
  3280.         gReserved1:                LONGINT;
  3281.         gReserved2:                LONGINT;
  3282.         gReserved3:                LONGINT;
  3283.         clientData:                LONGINT;
  3284.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3285.         aType:                    AttributeTypePtr;                        {   -> Attribute Type to which access controls are sought           }
  3286.         cReserved:                LONGINT;                                {   -- unused  }
  3287.         dReserved:                LONGINT;                                {   -- unused  }
  3288.         eachObject:                ForEachAttributeAccessControl;            {  -->  }
  3289.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3290.         filler1:                BOOLEAN;
  3291.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3292.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3293.         filler2:                BOOLEAN;
  3294.         getBuffer:                Ptr;                                    {     ->  }
  3295.         getBufferSize:            UInt32;                                    {   ->  }
  3296.     END;
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303. {
  3304. MapPathNameToDNodeNumber:
  3305. This call maps a given PathName within a catalog to its DNodeNumber.
  3306. }
  3307.     DirMapPathNameToDNodeNumberPBPtr = ^DirMapPathNameToDNodeNumberPB;
  3308.     DirMapPathNameToDNodeNumberPB = RECORD
  3309.         qLink:                    Ptr;
  3310.         reserved1:                LONGINT;
  3311.         reserved2:                LONGINT;
  3312.         ioCompletion:            DirIOCompletionUPP;
  3313.         ioResult:                OSErr;
  3314.         saveA5:                    UInt32;
  3315.         reqCode:                INTEGER;
  3316.         reserved:                ARRAY [0..1] OF LONGINT;
  3317.         serverHint:                AddrBlock;
  3318.         dsRefNum:                INTEGER;
  3319.         callID:                    UInt32;
  3320.         identity:                AuthIdentity;
  3321.         gReserved1:                LONGINT;
  3322.         gReserved2:                LONGINT;
  3323.         gReserved3:                LONGINT;
  3324.         clientData:                LONGINT;
  3325.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3326.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3327.         dNodeNumber:            DNodeNum;                                {  <--  dNodenumber to the path  }
  3328.         path:                    PackedPathNamePtr;                        {   --> Path Name to be mapped  }
  3329.     END;
  3330.  
  3331. {
  3332. PathName in the path field will be mapped to the cooresponding dNodeNumber and
  3333. returned in the DNodeNumber field. directoryName and descriminator Fields are
  3334. ignored. DSRefNum is used to identify the catalog.
  3335. }
  3336.  
  3337.  
  3338. {
  3339. MapDNodeNumberToPathName:
  3340. This call will map a given DNodeNumber with in a catalog to the
  3341. corresponding PathName.
  3342. }
  3343.     DirMapDNodeNumberToPathNamePBPtr = ^DirMapDNodeNumberToPathNamePB;
  3344.     DirMapDNodeNumberToPathNamePB = RECORD
  3345.         qLink:                    Ptr;
  3346.         reserved1:                LONGINT;
  3347.         reserved2:                LONGINT;
  3348.         ioCompletion:            DirIOCompletionUPP;
  3349.         ioResult:                OSErr;
  3350.         saveA5:                    UInt32;
  3351.         reqCode:                INTEGER;
  3352.         reserved:                ARRAY [0..1] OF LONGINT;
  3353.         serverHint:                AddrBlock;
  3354.         dsRefNum:                INTEGER;
  3355.         callID:                    UInt32;
  3356.         identity:                AuthIdentity;
  3357.         gReserved1:                LONGINT;
  3358.         gReserved2:                LONGINT;
  3359.         gReserved3:                LONGINT;
  3360.         clientData:                LONGINT;
  3361.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3362.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3363.         dNodeNumber:            DNodeNum;                                {   --> dNodenumber to be mapped  }
  3364.         path:                    PackedPathNamePtr;                        {  <--  Packed Path Name returned  }
  3365.         lengthOfPathName:        UInt16;                                    {   --> length of packed pathName structure }
  3366.     END;
  3367.  
  3368. {
  3369. dNodeNumber in the DNodeNumber field will be mapped to the cooresponding
  3370. pathName and returned in the PackedPathName field.
  3371. lengthOfPathName is to be set the length of pathName structure.
  3372. If length of PackedPathName is larger then the lengthOfPathName, kOCEMoreData
  3373. OSErr will be returned.
  3374. }
  3375. {
  3376. GetLocalNetworkSpec:
  3377. This call will return the Local NetworkSpec. Client should supply
  3378. an RString big enough to hold the NetworkSpec.
  3379. }
  3380.     DirGetLocalNetworkSpecPBPtr = ^DirGetLocalNetworkSpecPB;
  3381.     DirGetLocalNetworkSpecPB = RECORD
  3382.         qLink:                    Ptr;
  3383.         reserved1:                LONGINT;
  3384.         reserved2:                LONGINT;
  3385.         ioCompletion:            DirIOCompletionUPP;
  3386.         ioResult:                OSErr;
  3387.         saveA5:                    UInt32;
  3388.         reqCode:                INTEGER;
  3389.         reserved:                ARRAY [0..1] OF LONGINT;
  3390.         serverHint:                AddrBlock;
  3391.         dsRefNum:                INTEGER;
  3392.         callID:                    UInt32;
  3393.         identity:                AuthIdentity;
  3394.         gReserved1:                LONGINT;
  3395.         gReserved2:                LONGINT;
  3396.         gReserved3:                LONGINT;
  3397.         clientData:                LONGINT;
  3398.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3399.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3400.         networkSpec:            NetworkSpecPtr;                            {  <--  NetworkSpec  }
  3401.     END;
  3402.  
  3403. {
  3404. PathName in the path field must be set to nil. internetName should be large
  3405. enough to hold the internetName. InterNetname returned indicates path finder's
  3406. local internet (configured by administrator).
  3407. }
  3408. {
  3409. GetDNodeInfo:
  3410. This call will return the information (internetName and descriptor)
  3411. for the given RLI of a DNode.
  3412. }
  3413.     DirGetDNodeInfoPBPtr = ^DirGetDNodeInfoPB;
  3414.     DirGetDNodeInfoPB = RECORD
  3415.         qLink:                    Ptr;
  3416.         reserved1:                LONGINT;
  3417.         reserved2:                LONGINT;
  3418.         ioCompletion:            DirIOCompletionUPP;
  3419.         ioResult:                OSErr;
  3420.         saveA5:                    UInt32;
  3421.         reqCode:                INTEGER;
  3422.         reserved:                ARRAY [0..1] OF LONGINT;
  3423.         serverHint:                AddrBlock;
  3424.         dsRefNum:                INTEGER;
  3425.         callID:                    UInt32;
  3426.         identity:                AuthIdentity;
  3427.         gReserved1:                LONGINT;
  3428.         gReserved2:                LONGINT;
  3429.         gReserved3:                LONGINT;
  3430.         clientData:                LONGINT;
  3431.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI whose info is requested  }
  3432.         descriptor:                DirNodeKind;                            {  <--  dNode descriptor  }
  3433.         networkSpec:            NetworkSpecPtr;                            {  <--  cluster's networkSpec if kIsCluster  }
  3434.     END;
  3435.  
  3436. {
  3437. If DnodeNumber is set to a non zero value, path should be set to nil.
  3438. if DnodeNumber is set to zero, pathName should point to a packed path name.
  3439. internetName should be large enough to hold
  3440. the internetName. (If the internetName is same as the one got by
  3441. GetLocalInternetName call, it indicates cluster is reachable  without
  3442. forwarders, --> Tell me if I am wrong)
  3443. }
  3444.  
  3445. {
  3446. DirCreatePersonalDirectory:
  3447. A new  personal catalog can be created by specifying an FSSpec for
  3448. the file. If a file already exists dupFNErr will be returned. This call is
  3449. supported 'synchronous' mode only.
  3450. }
  3451.     DirCreatePersonalDirectoryPBPtr = ^DirCreatePersonalDirectoryPB;
  3452.     DirCreatePersonalDirectoryPB = RECORD
  3453.         qLink:                    Ptr;
  3454.         reserved1:                LONGINT;
  3455.         reserved2:                LONGINT;
  3456.         ioCompletion:            DirIOCompletionUPP;
  3457.         ioResult:                OSErr;
  3458.         saveA5:                    UInt32;
  3459.         reqCode:                INTEGER;
  3460.         reserved:                ARRAY [0..1] OF LONGINT;
  3461.         serverHint:                AddrBlock;
  3462.         dsRefNum:                INTEGER;
  3463.         callID:                    UInt32;
  3464.         identity:                AuthIdentity;
  3465.         gReserved1:                LONGINT;
  3466.         gReserved2:                LONGINT;
  3467.         gReserved3:                LONGINT;
  3468.         clientData:                LONGINT;
  3469.         fsSpec:                    FSSpecPtr;                                {   --> FSSpec for the Personal Catalog  }
  3470.         fdType:                    OSType;                                    {   --> file type for the Personal Catalog  }
  3471.         fdCreator:                OSType;                                    {   --> file creator for the Personal Catalog  }
  3472.     END;
  3473.  
  3474. {
  3475. DirOpenPersonalDirectory:
  3476. An existing personal catalog can be opened using this call.
  3477. User can specify the personal catalog by FSSpec for the AddressBook file.
  3478. 'accessRequested' field specifies open permissions. 'fsRdPerm'  & 'fsRdWrPerm'
  3479. are the only accepted open modes for the address book.
  3480. When the call completes successfully, a dsRefNum will be returned. The 'dsRefNum'
  3481. field is in the DSParamBlockHeader. In addittion 'accessGranted' indicates
  3482. actual permission with personal catalog is opened and 'features' indicate the capabilty flags
  3483. associated with the personal catalog.
  3484. This call is supported 'synchronous' mode only.
  3485. }
  3486.  
  3487.     DirOpenPersonalDirectoryPBPtr = ^DirOpenPersonalDirectoryPB;
  3488.     DirOpenPersonalDirectoryPB = RECORD
  3489.         qLink:                    Ptr;
  3490.         reserved1:                LONGINT;
  3491.         reserved2:                LONGINT;
  3492.         ioCompletion:            DirIOCompletionUPP;
  3493.         ioResult:                OSErr;
  3494.         saveA5:                    UInt32;
  3495.         reqCode:                INTEGER;
  3496.         reserved:                ARRAY [0..1] OF LONGINT;
  3497.         serverHint:                AddrBlock;
  3498.         dsRefNum:                INTEGER;
  3499.         callID:                    UInt32;
  3500.         identity:                AuthIdentity;
  3501.         gReserved1:                LONGINT;
  3502.         gReserved2:                LONGINT;
  3503.         gReserved3:                LONGINT;
  3504.         clientData:                LONGINT;
  3505.         fsSpec:                    FSSpecPtr;                                {   --> Open an existing Personal Catalog  }
  3506.         accessRequested:        SInt8;                                    {   --> Open: permissions Requested(byte) }
  3507.         accessGranted:            SInt8;                                    {   <-- Open: permissions (byte) (Granted) }
  3508.         features:                DirGestalt;                                {  <--  features for Personal Catalog  }
  3509.     END;
  3510.  
  3511. {
  3512. DirClosePersonalDirectory: This call lets a client close AddressBook opened by DirOpenPersonalDirectory.
  3513. The Personal Catalog specified by the 'dsRefNum' will be closed.
  3514. This call is supported 'synchronous' mode only.
  3515. }
  3516.     DirClosePersonalDirectoryPBPtr = ^DirClosePersonalDirectoryPB;
  3517.     DirClosePersonalDirectoryPB = RECORD
  3518.         qLink:                    Ptr;
  3519.         reserved1:                LONGINT;
  3520.         reserved2:                LONGINT;
  3521.         ioCompletion:            DirIOCompletionUPP;
  3522.         ioResult:                OSErr;
  3523.         saveA5:                    UInt32;
  3524.         reqCode:                INTEGER;
  3525.         reserved:                ARRAY [0..1] OF LONGINT;
  3526.         serverHint:                AddrBlock;
  3527.         dsRefNum:                INTEGER;
  3528.         callID:                    UInt32;
  3529.         identity:                AuthIdentity;
  3530.         gReserved1:                LONGINT;
  3531.         gReserved2:                LONGINT;
  3532.         gReserved3:                LONGINT;
  3533.         clientData:                LONGINT;
  3534.     END;
  3535.  
  3536.  
  3537. {
  3538. DirMakePersonalDirectoryRLI: With this call a client can make an RLI
  3539. for a Personal Catalog opened by DirOpenPersonalDirectory Call.
  3540. A packed RLI is created for the Personal Catalog specified by the 'dsRefNum'.
  3541. If a client has a need to make the AddressBook reference to persistent
  3542. acrross boots it should make use of this call. In the current implementaion
  3543. PackedRLI has an embeeded System7.0 'alias'. If in later time
  3544. If client has a need to make reference to the AddressBook, it must use
  3545. ADAPLibrary call 'DUExtractAlias' and resole the 'alias' to 'FSSpec' and
  3546. make DirOpenPersonalDirectory call to get a 'dsRefNum'.
  3547.   'fromFSSpec'            FSPecPtr from which relative alias to be created. If nil,
  3548.                         absolute alias is created.
  3549.  'pRLIBufferSize' indicates the size of buffer pointed by 'pRLI'
  3550.  'pRLISize'    indicates the actual length of 'pRLI'. If the call
  3551.                         fails with 'kOCEMoreData' error a client can reissue
  3552.                     this call with a larger buffer of this length.
  3553.   'pRLI' is pointer to the buffer in which 'PackedRLI' is
  3554.   returned.
  3555. This call is supported in 'synchronous' mode only.
  3556. }
  3557.     DirMakePersonalDirectoryRLIPBPtr = ^DirMakePersonalDirectoryRLIPB;
  3558.     DirMakePersonalDirectoryRLIPB = RECORD
  3559.         qLink:                    Ptr;
  3560.         reserved1:                LONGINT;
  3561.         reserved2:                LONGINT;
  3562.         ioCompletion:            DirIOCompletionUPP;
  3563.         ioResult:                OSErr;
  3564.         saveA5:                    UInt32;
  3565.         reqCode:                INTEGER;
  3566.         reserved:                ARRAY [0..1] OF LONGINT;
  3567.         serverHint:                AddrBlock;
  3568.         dsRefNum:                INTEGER;
  3569.         callID:                    UInt32;
  3570.         identity:                AuthIdentity;
  3571.         gReserved1:                LONGINT;
  3572.         gReserved2:                LONGINT;
  3573.         gReserved3:                LONGINT;
  3574.         clientData:                LONGINT;
  3575.         fromFSSpec:                FSSpecPtr;                                {   --> FSSpec for creating relative alia  }
  3576.         pRLIBufferSize:            UInt16;                                    {   --> Length of 'pRLI' buffer  }
  3577.         pRLISize:                UInt16;                                    {  <--  Length of actual 'pRLI'  }
  3578.         pRLI:                    PackedRLIPtr;                            {  <--  pRLI for the specified AddressBook  }
  3579.     END;
  3580.  
  3581.  
  3582. {****************************************************************************
  3583. The calls described below apply only for CSAM Drivers:
  3584.  
  3585. The following three calls provide capability to Install/Remove a CSAM at RunTime.
  3586.     DirAddDSAM
  3587.     DirRemoveDSAM
  3588.     DirInstantiateDSAM
  3589.  
  3590. The following two calls provide capability to Install/Remove a CSAM Catalog at RunTime.
  3591.     DirAddDSAMDirectory
  3592.     DirRemoveDirectory
  3593.  
  3594. DirGetDirectoryIcon call is used by clients to get any special icon associated
  3595. with a CSAM catalog.
  3596.  
  3597. ****************************************************************************}
  3598.  
  3599. {
  3600. DirAddDSAM: This call can be used to inorm the availability of a CSAM file
  3601. after discovering the CSAM file.
  3602.     dsamName -> is generic CSAM name e.g. Untitled X.500 directory
  3603.     dsamSignature -> could be generic CSAM kind e.g. 'X500'.
  3604.     fsSpec -> is the FileSpec for the file containing CSAM resources.
  3605. If the call is successfull 'DSAMRecordCID' will be returned. If the
  3606. call returns 'daDSAMRecordCIDExists', record was already there and
  3607. 'dsamRecordCID' will be returned.
  3608. This call can be done only in synchronous mode.
  3609. }
  3610.     DirAddDSAMPBPtr = ^DirAddDSAMPB;
  3611.     DirAddDSAMPB = RECORD
  3612.         qLink:                    Ptr;
  3613.         reserved1:                LONGINT;
  3614.         reserved2:                LONGINT;
  3615.         ioCompletion:            DirIOCompletionUPP;
  3616.         ioResult:                OSErr;
  3617.         saveA5:                    UInt32;
  3618.         reqCode:                INTEGER;
  3619.         reserved:                ARRAY [0..1] OF LONGINT;
  3620.         serverHint:                AddrBlock;
  3621.         dsRefNum:                INTEGER;
  3622.         callID:                    UInt32;
  3623.         identity:                AuthIdentity;
  3624.         gReserved1:                LONGINT;
  3625.         gReserved2:                LONGINT;
  3626.         gReserved3:                LONGINT;
  3627.         clientData:                LONGINT;
  3628.         dsamRecordCID:            CreationID;                                {  <--  CreationID for the CSAM record  }
  3629.         dsamName:                RStringPtr;                                {   --> CSAM name  }
  3630.         dsamKind:                OCEDirectoryKind;                        {   --> CSAM kind  }
  3631.         fsSpec:                    FSSpecPtr;                                {   --> FSSpec for the file containing CSAM  }
  3632.     END;
  3633.  
  3634. {
  3635. DirInstantiateDSAM: This call should be used by the CSAM driver in response
  3636. Driver Open call to indicate the toolbox about the availability of the CSAM.
  3637.     dsamName -> is generic CSAM name e.g. Untitled X.500 directory
  3638.     dsamKind -> could be generic CSAM kind e.g. 'X500'.
  3639.     dsamData -> pointer to private DSAMData. This will be paased back to the CSAM
  3640.     when the CSAM functions (DSAMDirProc,DSAMDirParseProc, DSAMAuthProc) are called.
  3641.     CSAM should already be setup using DirAddDSAM call.
  3642.     DSAMDirProc -> This procedure will be called when  any catalog service
  3643.     call intended for the CSAM (other then parse calls)
  3644.     DSAMDirParseProc -> This procedure will be called when any of the parse calls
  3645.     are called.
  3646.     DSAMAuthProc -> This procedure will be called when any of the Authentication Calls
  3647.     are made to the CSAM. If the CSAM does not support authentication, this can be nil.
  3648. This call can be done only in synchronous mode.
  3649. }
  3650. {$IFC TYPED_FUNCTION_POINTERS}
  3651.     DSAMDirProcPtr = FUNCTION(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  3652. {$ELSEC}
  3653.     DSAMDirProcPtr = ProcPtr;
  3654. {$ENDC}
  3655.  
  3656.     DSAMDirUPP = UniversalProcPtr;
  3657.     DSAMDirProc                            = DSAMDirUPP;
  3658. {$IFC TYPED_FUNCTION_POINTERS}
  3659.     DSAMDirParseProcPtr = FUNCTION(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  3660. {$ELSEC}
  3661.     DSAMDirParseProcPtr = ProcPtr;
  3662. {$ENDC}
  3663.  
  3664.     DSAMDirParseUPP = UniversalProcPtr;
  3665.     DSAMDirParseProc                    = DSAMDirParseUPP;
  3666. {$IFC TYPED_FUNCTION_POINTERS}
  3667.     DSAMAuthProcPtr = FUNCTION(dsamData: UNIV Ptr; pb: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  3668. {$ELSEC}
  3669.     DSAMAuthProcPtr = ProcPtr;
  3670. {$ENDC}
  3671.  
  3672.     DSAMAuthUPP = UniversalProcPtr;
  3673.     DSAMAuthProc                        = DSAMAuthUPP;
  3674.     DirInstantiateDSAMPBPtr = ^DirInstantiateDSAMPB;
  3675.     DirInstantiateDSAMPB = RECORD
  3676.         qLink:                    Ptr;
  3677.         reserved1:                LONGINT;
  3678.         reserved2:                LONGINT;
  3679.         ioCompletion:            DirIOCompletionUPP;
  3680.         ioResult:                OSErr;
  3681.         saveA5:                    UInt32;
  3682.         reqCode:                INTEGER;
  3683.         reserved:                ARRAY [0..1] OF LONGINT;
  3684.         serverHint:                AddrBlock;
  3685.         dsRefNum:                INTEGER;
  3686.         callID:                    UInt32;
  3687.         identity:                AuthIdentity;
  3688.         gReserved1:                LONGINT;
  3689.         gReserved2:                LONGINT;
  3690.         gReserved3:                LONGINT;
  3691.         clientData:                LONGINT;
  3692.         dsamName:                RStringPtr;                                {   --> dsamName name  }
  3693.         dsamKind:                OCEDirectoryKind;                        {   --> DSAMKind  }
  3694.         dsamData:                Ptr;                                    {   --> dsamData   }
  3695.         dsamDirProc:            DSAMDirUPP;                                {   --> of type DSAMDirProc: for catalog service calls  }
  3696.         dsamDirParseProc:        DSAMDirParseUPP;                        {   --> of type DSAMDirParseProc: for catalog service parse calls  }
  3697.         dsamAuthProc:            DSAMAuthUPP;                            {   --> of type DSAMAuthProc: for authetication service calls  }
  3698.     END;
  3699.  
  3700.  
  3701. {
  3702. DirRemoveDSAM: This call can be used to remove  a CSAM file from the OCE Setup.
  3703.     dsamRecordCID -> is the creationID of the CSAM record.
  3704. This call can be made only in synchronous mode.
  3705. }
  3706.     DirRemoveDSAMPBPtr = ^DirRemoveDSAMPB;
  3707.     DirRemoveDSAMPB = RECORD
  3708.         qLink:                    Ptr;
  3709.         reserved1:                LONGINT;
  3710.         reserved2:                LONGINT;
  3711.         ioCompletion:            DirIOCompletionUPP;
  3712.         ioResult:                OSErr;
  3713.         saveA5:                    UInt32;
  3714.         reqCode:                INTEGER;
  3715.         reserved:                ARRAY [0..1] OF LONGINT;
  3716.         serverHint:                AddrBlock;
  3717.         dsRefNum:                INTEGER;
  3718.         callID:                    UInt32;
  3719.         identity:                AuthIdentity;
  3720.         gReserved1:                LONGINT;
  3721.         gReserved2:                LONGINT;
  3722.         gReserved3:                LONGINT;
  3723.         clientData:                LONGINT;
  3724.         dsamRecordCID:            CreationID;                                {  <--  CreationID for the CSAM record  }
  3725.     END;
  3726.  
  3727.  
  3728. {
  3729. DirAddDSAMDirectory: This call can be used to inorm the availability of a CSAM catalog.
  3730.     dsamRecordCID ->  recordID for the CSAM serving this catalog
  3731.     directoryName ->  name of the catalog
  3732.     discriminator -> discriminator for the catalog
  3733.     directoryRecordCID -> If the call is successful, creationID for the record will
  3734.                             be returned.
  3735. }
  3736.     DirAddDSAMDirectoryPBPtr = ^DirAddDSAMDirectoryPB;
  3737.     DirAddDSAMDirectoryPB = RECORD
  3738.         qLink:                    Ptr;
  3739.         reserved1:                LONGINT;
  3740.         reserved2:                LONGINT;
  3741.         ioCompletion:            DirIOCompletionUPP;
  3742.         ioResult:                OSErr;
  3743.         saveA5:                    UInt32;
  3744.         reqCode:                INTEGER;
  3745.         reserved:                ARRAY [0..1] OF LONGINT;
  3746.         serverHint:                AddrBlock;
  3747.         dsRefNum:                INTEGER;
  3748.         callID:                    UInt32;
  3749.         identity:                AuthIdentity;
  3750.         gReserved1:                LONGINT;
  3751.         gReserved2:                LONGINT;
  3752.         gReserved3:                LONGINT;
  3753.         clientData:                LONGINT;
  3754.         dsamRecordCID:            CreationID;                                {   --> CreationID for the CSAM record  }
  3755.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3756.         discriminator:            DirDiscriminator;                        {   --> catalog discriminator  }
  3757.         features:                DirGestalt;                                {   --> capabilty flags for the catalog  }
  3758.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  3759.     END;
  3760.  
  3761. {
  3762. DirRemoveDirectory: This call can be used to inform the toolbox that
  3763. catalog specified by 'directoryRecordCID'
  3764. }
  3765.     DirRemoveDirectoryPBPtr = ^DirRemoveDirectoryPB;
  3766.     DirRemoveDirectoryPB = RECORD
  3767.         qLink:                    Ptr;
  3768.         reserved1:                LONGINT;
  3769.         reserved2:                LONGINT;
  3770.         ioCompletion:            DirIOCompletionUPP;
  3771.         ioResult:                OSErr;
  3772.         saveA5:                    UInt32;
  3773.         reqCode:                INTEGER;
  3774.         reserved:                ARRAY [0..1] OF LONGINT;
  3775.         serverHint:                AddrBlock;
  3776.         dsRefNum:                INTEGER;
  3777.         callID:                    UInt32;
  3778.         identity:                AuthIdentity;
  3779.         gReserved1:                LONGINT;
  3780.         gReserved2:                LONGINT;
  3781.         gReserved3:                LONGINT;
  3782.         clientData:                LONGINT;
  3783.         directoryRecordCID:        CreationID;                                {   --> creationID for the catalog record  }
  3784.     END;
  3785.  
  3786. {
  3787.  * DSGetExtendedDirectoriesInfo::  This call can be used to get
  3788.  * the information of various foreign catalogs supported.
  3789.  * Typically a DE Template  may make this call to create a
  3790.  * Address template or a Gateway may make this call to findout
  3791.  * catalog name space in which MSAM may would support. 
  3792.  * Client will supply a buffer pointed by 'bufferPtr' of size 'bufferLength'. 
  3793.  * When the call completes with 'daMoreData' error, client can examine 'totalEntries'
  3794.  * returned and reissue the call with increaing buffer.
  3795.  * Toolbox will findout the private information of each of the Foreign Catalogs
  3796.  * by polling CSAM's, Gateways, and MnMServers. The Information returned
  3797.  * for each catalog will be packed in the format: 
  3798.  * typedef struct EachDirectoryData (
  3799.  *  PackedRLI                        pRLI;           //  packed RLI for the catalog
  3800.  *  OSType                            entnType;        //  Entn Type
  3801.  *  long                            hasMailSlot;   //  If this catalog has mail slot this will be 1 otherwise zero
  3802.  *    ProtoRString                    RealName;      //  Packed RString for Real Name (padded to even boundary) 
  3803.  *    ProtoRString                    comment;       //  Packed RString holding any comment for Display (padded to even boundary)
  3804.  *    long                            length;        //  data length
  3805.  *    char                            data[length];  //  data padded to even boundary
  3806.  * );
  3807.  *
  3808.  *
  3809.  *
  3810.  * typedef struct myData (
  3811.  *      EachDirectoryData    data[numberOfEntries];    // data packed in the above format
  3812.  *    );
  3813.  *
  3814.  }
  3815.     DirGetExtendedDirectoriesInfoPBPtr = ^DirGetExtendedDirectoriesInfoPB;
  3816.     DirGetExtendedDirectoriesInfoPB = RECORD
  3817.         qLink:                    Ptr;
  3818.         reserved1:                LONGINT;
  3819.         reserved2:                LONGINT;
  3820.         ioCompletion:            DirIOCompletionUPP;
  3821.         ioResult:                OSErr;
  3822.         saveA5:                    UInt32;
  3823.         reqCode:                INTEGER;
  3824.         reserved:                ARRAY [0..1] OF LONGINT;
  3825.         serverHint:                AddrBlock;
  3826.         dsRefNum:                INTEGER;
  3827.         callID:                    UInt32;
  3828.         identity:                AuthIdentity;
  3829.         gReserved1:                LONGINT;
  3830.         gReserved2:                LONGINT;
  3831.         gReserved3:                LONGINT;
  3832.         clientData:                LONGINT;
  3833.         buffer:                    Ptr;                                    {   --> Pointer to a buufer where data will be returned  }
  3834.         bufferSize:                UInt32;                                    {   --> Length of the buffer, Length of actual data will be returned here  }
  3835.         totalEntries:            UInt32;                                    {  <--  Total Number of Catalogs found  }
  3836.         actualEntries:            UInt32;                                    {  <--  Total Number of Catalogs entries returned  }
  3837.     END;
  3838.  
  3839. {
  3840. DirGetDirectoryIconPB: With this call a client can find out about
  3841. the icons supported by the Catalog.
  3842. Both ADAP and Personal Catalog will not support this call for now.
  3843. A CSAM can support a call so that DE Extension can use this
  3844. call to find appropriate Icons.
  3845.  
  3846. Returns kOCEBufferTooSmall if icon is too small, but will update iconSize.
  3847. }
  3848.     DirGetDirectoryIconPBPtr = ^DirGetDirectoryIconPB;
  3849.     DirGetDirectoryIconPB = RECORD
  3850.         qLink:                    Ptr;
  3851.         reserved1:                LONGINT;
  3852.         reserved2:                LONGINT;
  3853.         ioCompletion:            DirIOCompletionUPP;
  3854.         ioResult:                OSErr;
  3855.         saveA5:                    UInt32;
  3856.         reqCode:                INTEGER;
  3857.         reserved:                ARRAY [0..1] OF LONGINT;
  3858.         serverHint:                AddrBlock;
  3859.         dsRefNum:                INTEGER;
  3860.         callID:                    UInt32;
  3861.         identity:                AuthIdentity;
  3862.         gReserved1:                LONGINT;
  3863.         gReserved2:                LONGINT;
  3864.         gReserved3:                LONGINT;
  3865.         clientData:                LONGINT;
  3866.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI for the catalog  }
  3867.         iconType:                OSType;                                    {   --> Type of Icon requested  }
  3868.         iconBuffer:                Ptr;                                    {   --> Buffer to hold Icon Data  }
  3869.         bufferSize:                UInt32;                                    {   <-> size of buffer to hold icon data  }
  3870.     END;
  3871.  
  3872. {
  3873. DirGetOCESetupRefNum: This call will return 'dsRefnum' for the OCE Setup Personal Catalog
  3874. and oceSetupRecordCID for the oceSetup Record.
  3875. Clients interested in manipulating OCE Setup Personal Catalog directly should
  3876. make this call to get 'dsRefNum'.
  3877. 'dsRefNum' will be returned in the standard field in the DirParamHeader.
  3878. }
  3879.     DirGetOCESetupRefNumPBPtr = ^DirGetOCESetupRefNumPB;
  3880.     DirGetOCESetupRefNumPB = RECORD
  3881.         qLink:                    Ptr;
  3882.         reserved1:                LONGINT;
  3883.         reserved2:                LONGINT;
  3884.         ioCompletion:            DirIOCompletionUPP;
  3885.         ioResult:                OSErr;
  3886.         saveA5:                    UInt32;
  3887.         reqCode:                INTEGER;
  3888.         reserved:                ARRAY [0..1] OF LONGINT;
  3889.         serverHint:                AddrBlock;
  3890.         dsRefNum:                INTEGER;
  3891.         callID:                    UInt32;
  3892.         identity:                AuthIdentity;
  3893.         gReserved1:                LONGINT;
  3894.         gReserved2:                LONGINT;
  3895.         gReserved3:                LONGINT;
  3896.         clientData:                LONGINT;
  3897.         oceSetupRecordCID:        CreationID;                                {  --> creationID for the catalog record  }
  3898.     END;
  3899.  
  3900.  
  3901. {***************************************************************************}
  3902. { Catalog and Authentication control blocks and operation definitions }
  3903.     AuthParamBlock = RECORD
  3904.         CASE INTEGER OF
  3905.         0: (
  3906.             qLink:                Ptr;
  3907.             reserved1:            LONGINT;
  3908.             reserved2:            LONGINT;
  3909.             ioCompletion:        AuthIOCompletionUPP;
  3910.             ioResult:            OSErr;
  3911.             saveA5:                UInt32;
  3912.             reqCode:            INTEGER;
  3913.             reserved:            ARRAY [0..1] OF LONGINT;
  3914.             serverHint:            AddrBlock;
  3915.             dsRefNum:            INTEGER;
  3916.             callID:                UInt32;
  3917.             identity:            AuthIdentity;
  3918.             gReserved1:            LONGINT;
  3919.             gReserved2:            LONGINT;
  3920.             gReserved3:            LONGINT;
  3921.             clientData:            LONGINT;
  3922.            );
  3923.         1: (
  3924.             bindIdentityPB:        AuthBindSpecificIdentityPB;
  3925.             );
  3926.         2: (
  3927.             unbindIdentityPB:    AuthUnbindSpecificIdentityPB;
  3928.             );
  3929.         3: (
  3930.             resolveCreationIDPB: AuthResolveCreationIDPB;
  3931.             );
  3932.         4: (
  3933.             getIdentityInfoPB:    AuthGetSpecificIdentityInfoPB;
  3934.             );
  3935.         5: (
  3936.             addKeyPB:            AuthAddKeyPB;
  3937.             );
  3938.         6: (
  3939.             changeKeyPB:        AuthChangeKeyPB;
  3940.             );
  3941.         7: (
  3942.             deleteKeyPB:        AuthDeleteKeyPB;
  3943.             );
  3944.         8: (
  3945.             passwordToKeyPB:    AuthPasswordToKeyPB;
  3946.             );
  3947.         9: (
  3948.             getCredentialsPB:    AuthGetCredentialsPB;
  3949.             );
  3950.         10: (
  3951.             decryptCredentialsPB: AuthDecryptCredentialsPB;
  3952.             );
  3953.         11: (
  3954.             makeChallengePB:    AuthMakeChallengePB;
  3955.             );
  3956.         12: (
  3957.             makeReplyPB:        AuthMakeReplyPB;
  3958.             );
  3959.         13: (
  3960.             verifyReplyPB:        AuthVerifyReplyPB;
  3961.             );
  3962.         14: (
  3963.             getUTCTimePB:        AuthGetUTCTimePB;
  3964.             );
  3965.         15: (
  3966.             makeProxyPB:        AuthMakeProxyPB;
  3967.             );
  3968.         16: (
  3969.             tradeProxyForCredentialsPB: AuthTradeProxyForCredentialsPB;
  3970.             );
  3971.         17: (
  3972.             getLocalIdentityPB:    AuthGetLocalIdentityPB;
  3973.             );
  3974.         18: (
  3975.             unLockLocalIdentityPB: AuthUnlockLocalIdentityPB;
  3976.             );
  3977.         19: (
  3978.             lockLocalIdentityPB: AuthLockLocalIdentityPB;
  3979.             );
  3980.         20: (
  3981.             localIdentityQInstallPB: AuthAddToLocalIdentityQueuePB;
  3982.             );
  3983.         21: (
  3984.             localIdentityQRemovePB: AuthRemoveFromLocalIdentityQueuePB;
  3985.             );
  3986.         22: (
  3987.             setupLocalIdentityPB: AuthSetupLocalIdentityPB;
  3988.             );
  3989.         23: (
  3990.             changeLocalIdentityPB: AuthChangeLocalIdentityPB;
  3991.             );
  3992.         24: (
  3993.             removeLocalIdentityPB: AuthRemoveLocalIdentityPB;
  3994.             );
  3995.         25: (
  3996.             setupDirectoryIdentityPB: OCESetupAddDirectoryInfoPB;
  3997.             );
  3998.         26: (
  3999.             changeDirectoryIdentityPB: OCESetupChangeDirectoryInfoPB;
  4000.             );
  4001.         27: (
  4002.             removeDirectoryIdentityPB: OCESetupRemoveDirectoryInfoPB;
  4003.             );
  4004.         28: (
  4005.             getDirectoryIdentityInfoPB: OCESetupGetDirectoryInfoPB;
  4006.             );
  4007.     END;
  4008.  
  4009.     DirParamBlock = RECORD
  4010.         CASE INTEGER OF
  4011.         0: (
  4012.             qLink:                Ptr;
  4013.             reserved1:            LONGINT;
  4014.             reserved2:            LONGINT;
  4015.             ioCompletion:        DirIOCompletionUPP;
  4016.             ioResult:            OSErr;
  4017.             saveA5:                UInt32;
  4018.             reqCode:            INTEGER;
  4019.             reserved:            ARRAY [0..1] OF LONGINT;
  4020.             serverHint:            AddrBlock;
  4021.             dsRefNum:            INTEGER;
  4022.             callID:                UInt32;
  4023.             identity:            AuthIdentity;
  4024.             gReserved1:            LONGINT;
  4025.             gReserved2:            LONGINT;
  4026.             gReserved3:            LONGINT;
  4027.             clientData:            LONGINT;
  4028.            );
  4029.         1: (
  4030.             addRecordPB:        DirAddRecordPB;
  4031.             );
  4032.         2: (
  4033.             deleteRecordPB:        DirDeleteRecordPB;
  4034.             );
  4035.         3: (
  4036.             enumerateGetPB:        DirEnumerateGetPB;
  4037.             );
  4038.         4: (
  4039.             enumerateParsePB:    DirEnumerateParsePB;
  4040.             );
  4041.         5: (
  4042.             findRecordGetPB:    DirFindRecordGetPB;
  4043.             );
  4044.         6: (
  4045.             findRecordParsePB:    DirFindRecordParsePB;
  4046.             );
  4047.         7: (
  4048.             lookupGetPB:        DirLookupGetPB;
  4049.             );
  4050.         8: (
  4051.             lookupParsePB:        DirLookupParsePB;
  4052.             );
  4053.         9: (
  4054.             addAttributeValuePB: DirAddAttributeValuePB;
  4055.             );
  4056.         10: (
  4057.             deleteAttributeTypePB: DirDeleteAttributeTypePB;
  4058.             );
  4059.         11: (
  4060.             deleteAttributeValuePB: DirDeleteAttributeValuePB;
  4061.             );
  4062.         12: (
  4063.             changeAttributeValuePB: DirChangeAttributeValuePB;
  4064.             );
  4065.         13: (
  4066.             verifyAttributeValuePB: DirVerifyAttributeValuePB;
  4067.             );
  4068.         14: (
  4069.             findValuePB:        DirFindValuePB;
  4070.             );
  4071.         15: (
  4072.             enumeratePseudonymGetPB: DirEnumeratePseudonymGetPB;
  4073.             );
  4074.         16: (
  4075.             enumeratePseudonymParsePB: DirEnumeratePseudonymParsePB;
  4076.             );
  4077.         17: (
  4078.             addPseudonymPB:        DirAddPseudonymPB;
  4079.             );
  4080.         18: (
  4081.             deletePseudonymPB:    DirDeletePseudonymPB;
  4082.             );
  4083.         19: (
  4084.             addAliasPB:            DirAddAliasPB;
  4085.             );
  4086.         20: (
  4087.             enumerateAttributeTypesGetPB: DirEnumerateAttributeTypesGetPB;
  4088.             );
  4089.         21: (
  4090.             enumerateAttributeTypesParsePB: DirEnumerateAttributeTypesParsePB;
  4091.             );
  4092.         22: (
  4093.             getNameAndTypePB:    DirGetNameAndTypePB;
  4094.             );
  4095.         23: (
  4096.             setNameAndTypePB:    DirSetNameAndTypePB;
  4097.             );
  4098.         24: (
  4099.             getRecordMetaInfoPB: DirGetRecordMetaInfoPB;
  4100.             );
  4101.         25: (
  4102.             getDNodeMetaInfoPB:    DirGetDNodeMetaInfoPB;
  4103.             );
  4104.         26: (
  4105.             getDirectoryInfoPB:    DirGetDirectoryInfoPB;
  4106.             );
  4107.         27: (
  4108.             getDNodeAccessControlGetPB: DirGetDNodeAccessControlGetPB;
  4109.             );
  4110.         28: (
  4111.             getDNodeAccessControlParsePB: DirGetDNodeAccessControlParsePB;
  4112.             );
  4113.         29: (
  4114.             getRecordAccessControlGetPB: DirGetRecordAccessControlGetPB;
  4115.             );
  4116.         30: (
  4117.             getRecordAccessControlParsePB: DirGetRecordAccessControlParsePB;
  4118.             );
  4119.         31: (
  4120.             getAttributeAccessControlGetPB: DirGetAttributeAccessControlGetPB;
  4121.             );
  4122.         32: (
  4123.             getAttributeAccessControlParsePB: DirGetAttributeAccessControlParsePB;
  4124.             );
  4125.         33: (
  4126.             enumerateDirectoriesGetPB: DirEnumerateDirectoriesGetPB;
  4127.             );
  4128.         34: (
  4129.             enumerateDirectoriesParsePB: DirEnumerateDirectoriesParsePB;
  4130.             );
  4131.         35: (
  4132.             addADAPDirectoryPB:    DirAddADAPDirectoryPB;
  4133.             );
  4134.         36: (
  4135.             removeDirectoryPB:    DirRemoveDirectoryPB;
  4136.             );
  4137.         37: (
  4138.             netSearchADAPDirectoriesGetPB: DirNetSearchADAPDirectoriesGetPB;
  4139.             );
  4140.         38: (
  4141.             netSearchADAPDirectoriesParsePB: DirNetSearchADAPDirectoriesParsePB;
  4142.             );
  4143.         39: (
  4144.             findADAPDirectoryByNetSearchPB: DirFindADAPDirectoryByNetSearchPB;
  4145.             );
  4146.         40: (
  4147.             mapDNodeNumberToPathNamePB: DirMapDNodeNumberToPathNamePB;
  4148.             );
  4149.         41: (
  4150.             mapPathNameToDNodeNumberPB: DirMapPathNameToDNodeNumberPB;
  4151.             );
  4152.         42: (
  4153.             getLocalNetworkSpecPB: DirGetLocalNetworkSpecPB;
  4154.             );
  4155.         43: (
  4156.             getDNodeInfoPB:        DirGetDNodeInfoPB;
  4157.             );
  4158.         44: (
  4159.             createPersonalDirectoryPB: DirCreatePersonalDirectoryPB;
  4160.             );
  4161.         45: (
  4162.             openPersonalDirectoryPB: DirOpenPersonalDirectoryPB;
  4163.             );
  4164.         46: (
  4165.             closePersonalDirectoryPB: DirClosePersonalDirectoryPB;
  4166.             );
  4167.         47: (
  4168.             makePersonalDirectoryRLIPB: DirMakePersonalDirectoryRLIPB;
  4169.             );
  4170.         48: (
  4171.             addDSAMPB:            DirAddDSAMPB;
  4172.             );
  4173.         49: (
  4174.             instantiateDSAMPB:    DirInstantiateDSAMPB;
  4175.             );
  4176.         50: (
  4177.             removeDSAMPB:        DirRemoveDSAMPB;
  4178.             );
  4179.         51: (
  4180.             addDSAMDirectoryPB:    DirAddDSAMDirectoryPB;
  4181.             );
  4182.         52: (
  4183.             getExtendedDirectoriesInfoPB: DirGetExtendedDirectoriesInfoPB;
  4184.             );
  4185.         53: (
  4186.             getDirectoryIconPB:    DirGetDirectoryIconPB;
  4187.             );
  4188.         54: (
  4189.             dirGetOCESetupRefNumPB: DirGetOCESetupRefNumPB;
  4190.             );
  4191.         55: (
  4192.             abortPB:            DirAbortPB;
  4193.             );
  4194.     END;
  4195.  
  4196.  
  4197. CONST
  4198.     uppAuthIOCompletionProcInfo = $00009802;
  4199.     uppNotificationProcInfo = $00003FD0;
  4200.     uppDirIOCompletionProcInfo = $00009802;
  4201.     uppForEachDirEnumSpecProcInfo = $000003D0;
  4202.     uppForEachRecordProcInfo = $00000FD0;
  4203.     uppForEachLookupRecordIDProcInfo = $000003D0;
  4204.     uppForEachAttrTypeLookupProcInfo = $00000FD0;
  4205.     uppForEachAttrValueProcInfo = $000003D0;
  4206.     uppForEachAttrTypeProcInfo = $000003D0;
  4207.     uppForEachRecordIDProcInfo = $000003D0;
  4208.     uppForEachDirectoryProcInfo = $00003FD0;
  4209.     uppForEachADAPDirectoryProcInfo = $0000FFD0;
  4210.     uppForEachDNodeAccessControlProcInfo = $0000FFD0;
  4211.     uppForEachRecordAccessControlProcInfo = $0000FFD0;
  4212.     uppForEachAttributeAccessControlProcInfo = $0000FFD0;
  4213.     uppDSAMDirProcInfo = $000007E0;
  4214.     uppDSAMDirParseProcInfo = $000007E0;
  4215.     uppDSAMAuthProcInfo = $000007E0;
  4216.  
  4217. PROCEDURE CallAuthIOCompletionProc(paramBlock: AuthParamBlockPtr; userRoutine: AuthIOCompletionUPP);
  4218.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4219.     {To be implemented:  Glue to move parameters into registers.}
  4220.     {$ENDC}
  4221.  
  4222. FUNCTION CallNotificationProc(clientData: LONGINT; callValue: AuthLocalIdentityOp; actionValue: AuthLocalIdentityLockAction; identity: LocalIdentity; userRoutine: NotificationUPP): BOOLEAN;
  4223.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4224.     INLINE $205F, $4E90;
  4225.     {$ENDC}
  4226.  
  4227. PROCEDURE CallDirIOCompletionProc(paramBlock: DirParamBlockPtr; userRoutine: DirIOCompletionUPP);
  4228.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4229.     {To be implemented:  Glue to move parameters into registers.}
  4230.     {$ENDC}
  4231.  
  4232. FUNCTION CallForEachDirEnumSpecProc(clientData: LONGINT; {CONST}VAR enumSpec: DirEnumSpec; userRoutine: ForEachDirEnumSpecUPP): BOOLEAN;
  4233.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4234.     INLINE $205F, $4E90;
  4235.     {$ENDC}
  4236.  
  4237. FUNCTION CallForEachRecordProc(clientData: LONGINT; {CONST}VAR enumSpec: DirEnumSpec; pRLI: PackedRLIPtr; userRoutine: ForEachRecordUPP): BOOLEAN;
  4238.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4239.     INLINE $205F, $4E90;
  4240.     {$ENDC}
  4241.  
  4242. FUNCTION CallForEachLookupRecordIDProc(clientData: LONGINT; {CONST}VAR recordID: RecordID; userRoutine: ForEachLookupRecordIDUPP): BOOLEAN;
  4243.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4244.     INLINE $205F, $4E90;
  4245.     {$ENDC}
  4246.  
  4247. FUNCTION CallForEachAttrTypeLookupProc(clientData: LONGINT; {CONST}VAR attrType: AttributeType; myAttrAccMask: AccessMask; userRoutine: ForEachAttrTypeLookupUPP): BOOLEAN;
  4248.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4249.     INLINE $205F, $4E90;
  4250.     {$ENDC}
  4251.  
  4252. FUNCTION CallForEachAttrValueProc(clientData: LONGINT; {CONST}VAR attribute: Attribute; userRoutine: ForEachAttrValueUPP): BOOLEAN;
  4253.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4254.     INLINE $205F, $4E90;
  4255.     {$ENDC}
  4256.  
  4257. FUNCTION CallForEachAttrTypeProc(clientData: LONGINT; {CONST}VAR attrType: AttributeType; userRoutine: ForEachAttrTypeUPP): BOOLEAN;
  4258.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4259.     INLINE $205F, $4E90;
  4260.     {$ENDC}
  4261.  
  4262. FUNCTION CallForEachRecordIDProc(clientData: LONGINT; {CONST}VAR recordID: RecordID; userRoutine: ForEachRecordIDUPP): BOOLEAN;
  4263.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4264.     INLINE $205F, $4E90;
  4265.     {$ENDC}
  4266.  
  4267. FUNCTION CallForEachDirectoryProc(clientData: LONGINT; {CONST}VAR dirName: DirectoryName; {CONST}VAR discriminator: DirDiscriminator; features: DirGestalt; userRoutine: ForEachDirectoryUPP): BOOLEAN;
  4268.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4269.     INLINE $205F, $4E90;
  4270.     {$ENDC}
  4271.  
  4272. FUNCTION CallForEachADAPDirectoryProc(clientData: LONGINT; {CONST}VAR dirName: DirectoryName; {CONST}VAR discriminator: DirDiscriminator; features: DirGestalt; serverHint: AddrBlock; userRoutine: ForEachADAPDirectoryUPP): BOOLEAN;
  4273.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4274.     INLINE $205F, $4E90;
  4275.     {$ENDC}
  4276.  
  4277. FUNCTION CallForEachDNodeAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; defaultRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask; userRoutine: ForEachDNodeAccessControlUPP): BOOLEAN;
  4278.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4279.     INLINE $205F, $4E90;
  4280.     {$ENDC}
  4281.  
  4282. FUNCTION CallForEachRecordAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask; userRoutine: ForEachRecordAccessControlUPP): BOOLEAN;
  4283.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4284.     INLINE $205F, $4E90;
  4285.     {$ENDC}
  4286.  
  4287. FUNCTION CallForEachAttributeAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; activeAttributeAccMask: AccessMask; userRoutine: ForEachAttributeAccessControlUPP): BOOLEAN;
  4288.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4289.     INLINE $205F, $4E90;
  4290.     {$ENDC}
  4291.  
  4292. FUNCTION CallDSAMDirProc(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN; userRoutine: DSAMDirUPP): OSErr;
  4293.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4294.     INLINE $205F, $4E90;
  4295.     {$ENDC}
  4296.  
  4297. FUNCTION CallDSAMDirParseProc(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN; userRoutine: DSAMDirParseUPP): OSErr;
  4298.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4299.     INLINE $205F, $4E90;
  4300.     {$ENDC}
  4301.  
  4302. FUNCTION CallDSAMAuthProc(dsamData: UNIV Ptr; pb: AuthParamBlockPtr; async: BOOLEAN; userRoutine: DSAMAuthUPP): OSErr;
  4303.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4304.     INLINE $205F, $4E90;
  4305.     {$ENDC}
  4306.  
  4307. FUNCTION NewAuthIOCompletionProc(userRoutine: AuthIOCompletionProcPtr): AuthIOCompletionUPP;
  4308.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4309.     INLINE $2E9F;
  4310.     {$ENDC}
  4311.  
  4312. FUNCTION NewNotificationProc(userRoutine: NotificationProcPtr): NotificationUPP;
  4313.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4314.     INLINE $2E9F;
  4315.     {$ENDC}
  4316.  
  4317. FUNCTION NewDirIOCompletionProc(userRoutine: DirIOCompletionProcPtr): DirIOCompletionUPP;
  4318.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4319.     INLINE $2E9F;
  4320.     {$ENDC}
  4321.  
  4322. FUNCTION NewForEachDirEnumSpecProc(userRoutine: ForEachDirEnumSpecProcPtr): ForEachDirEnumSpecUPP;
  4323.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4324.     INLINE $2E9F;
  4325.     {$ENDC}
  4326.  
  4327. FUNCTION NewForEachRecordProc(userRoutine: ForEachRecordProcPtr): ForEachRecordUPP;
  4328.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4329.     INLINE $2E9F;
  4330.     {$ENDC}
  4331.  
  4332. FUNCTION NewForEachLookupRecordIDProc(userRoutine: ForEachLookupRecordIDProcPtr): ForEachLookupRecordIDUPP;
  4333.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4334.     INLINE $2E9F;
  4335.     {$ENDC}
  4336.  
  4337. FUNCTION NewForEachAttrTypeLookupProc(userRoutine: ForEachAttrTypeLookupProcPtr): ForEachAttrTypeLookupUPP;
  4338.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4339.     INLINE $2E9F;
  4340.     {$ENDC}
  4341.  
  4342. FUNCTION NewForEachAttrValueProc(userRoutine: ForEachAttrValueProcPtr): ForEachAttrValueUPP;
  4343.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4344.     INLINE $2E9F;
  4345.     {$ENDC}
  4346.  
  4347. FUNCTION NewForEachAttrTypeProc(userRoutine: ForEachAttrTypeProcPtr): ForEachAttrTypeUPP;
  4348.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4349.     INLINE $2E9F;
  4350.     {$ENDC}
  4351.  
  4352. FUNCTION NewForEachRecordIDProc(userRoutine: ForEachRecordIDProcPtr): ForEachRecordIDUPP;
  4353.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4354.     INLINE $2E9F;
  4355.     {$ENDC}
  4356.  
  4357. FUNCTION NewForEachDirectoryProc(userRoutine: ForEachDirectoryProcPtr): ForEachDirectoryUPP;
  4358.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4359.     INLINE $2E9F;
  4360.     {$ENDC}
  4361.  
  4362. FUNCTION NewForEachADAPDirectoryProc(userRoutine: ForEachADAPDirectoryProcPtr): ForEachADAPDirectoryUPP;
  4363.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4364.     INLINE $2E9F;
  4365.     {$ENDC}
  4366.  
  4367. FUNCTION NewForEachDNodeAccessControlProc(userRoutine: ForEachDNodeAccessControlProcPtr): ForEachDNodeAccessControlUPP;
  4368.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4369.     INLINE $2E9F;
  4370.     {$ENDC}
  4371.  
  4372. FUNCTION NewForEachRecordAccessControlProc(userRoutine: ForEachRecordAccessControlProcPtr): ForEachRecordAccessControlUPP;
  4373.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4374.     INLINE $2E9F;
  4375.     {$ENDC}
  4376.  
  4377. FUNCTION NewForEachAttributeAccessControlProc(userRoutine: ForEachAttributeAccessControlProcPtr): ForEachAttributeAccessControlUPP;
  4378.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4379.     INLINE $2E9F;
  4380.     {$ENDC}
  4381.  
  4382. FUNCTION NewDSAMDirProc(userRoutine: DSAMDirProcPtr): DSAMDirUPP;
  4383.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4384.     INLINE $2E9F;
  4385.     {$ENDC}
  4386.  
  4387. FUNCTION NewDSAMDirParseProc(userRoutine: DSAMDirParseProcPtr): DSAMDirParseUPP;
  4388.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4389.     INLINE $2E9F;
  4390.     {$ENDC}
  4391.  
  4392. FUNCTION NewDSAMAuthProc(userRoutine: DSAMAuthProcPtr): DSAMAuthUPP;
  4393.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4394.     INLINE $2E9F;
  4395.     {$ENDC}
  4396. FUNCTION AuthBindSpecificIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4397.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4398.     INLINE $3F3C, $0200, $AA5E;
  4399.     {$ENDC}
  4400. FUNCTION AuthUnbindSpecificIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4401.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4402.     INLINE $3F3C, $0201, $AA5E;
  4403.     {$ENDC}
  4404. FUNCTION AuthResolveCreationID(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4405.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4406.     INLINE $3F3C, $0202, $AA5E;
  4407.     {$ENDC}
  4408. FUNCTION AuthGetSpecificIdentityInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4409.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4410.     INLINE $3F3C, $0203, $AA5E;
  4411.     {$ENDC}
  4412. FUNCTION AuthAddKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4413.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4414.     INLINE $3F3C, $0207, $AA5E;
  4415.     {$ENDC}
  4416. FUNCTION AuthChangeKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4417.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4418.     INLINE $3F3C, $0208, $AA5E;
  4419.     {$ENDC}
  4420. FUNCTION AuthDeleteKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4421.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4422.     INLINE $3F3C, $0209, $AA5E;
  4423.     {$ENDC}
  4424. FUNCTION AuthPasswordToKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4425.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4426.     INLINE $3F3C, $020A, $AA5E;
  4427.     {$ENDC}
  4428. FUNCTION AuthGetCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4429.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4430.     INLINE $3F3C, $020B, $AA5E;
  4431.     {$ENDC}
  4432. FUNCTION AuthDecryptCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4433.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4434.     INLINE $3F3C, $020C, $AA5E;
  4435.     {$ENDC}
  4436. FUNCTION AuthMakeChallenge(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4437.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4438.     INLINE $3F3C, $020F, $AA5E;
  4439.     {$ENDC}
  4440. FUNCTION AuthMakeReply(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4441.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4442.     INLINE $3F3C, $0210, $AA5E;
  4443.     {$ENDC}
  4444. FUNCTION AuthVerifyReply(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4445.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4446.     INLINE $3F3C, $0211, $AA5E;
  4447.     {$ENDC}
  4448. FUNCTION AuthGetUTCTime(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4449.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4450.     INLINE $3F3C, $021A, $AA5E;
  4451.     {$ENDC}
  4452. FUNCTION AuthMakeProxy(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4453.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4454.     INLINE $3F3C, $0212, $AA5E;
  4455.     {$ENDC}
  4456. FUNCTION AuthTradeProxyForCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4457.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4458.     INLINE $3F3C, $0213, $AA5E;
  4459.     {$ENDC}
  4460. { Local Identity API }
  4461. FUNCTION AuthGetLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4462.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4463.     INLINE $3F3C, $0204, $AA5E;
  4464.     {$ENDC}
  4465. FUNCTION AuthUnlockLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4466.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4467.     INLINE $3F3C, $0214, $AA5E;
  4468.     {$ENDC}
  4469. FUNCTION AuthLockLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4470.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4471.     INLINE $3F3C, $0215, $AA5E;
  4472.     {$ENDC}
  4473. FUNCTION AuthAddToLocalIdentityQueue(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4474.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4475.     INLINE $3F3C, $0205, $AA5E;
  4476.     {$ENDC}
  4477. FUNCTION AuthRemoveFromLocalIdentityQueue(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4478.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4479.     INLINE $3F3C, $0206, $AA5E;
  4480.     {$ENDC}
  4481. FUNCTION AuthSetupLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4482.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4483.     INLINE $3F3C, $0216, $AA5E;
  4484.     {$ENDC}
  4485. FUNCTION AuthChangeLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4486.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4487.     INLINE $3F3C, $0217, $AA5E;
  4488.     {$ENDC}
  4489. FUNCTION AuthRemoveLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4490.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4491.     INLINE $3F3C, $0218, $AA5E;
  4492.     {$ENDC}
  4493. FUNCTION DirAddRecord(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4494.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4495.     INLINE $3F3C, $0109, $AA5E;
  4496.     {$ENDC}
  4497. FUNCTION DirDeleteRecord(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4498.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4499.     INLINE $3F3C, $010A, $AA5E;
  4500.     {$ENDC}
  4501. FUNCTION DirEnumerateGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4502.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4503.     INLINE $3F3C, $0111, $AA5E;
  4504.     {$ENDC}
  4505. FUNCTION DirEnumerateParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4506.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4507.     INLINE $3F3C, $0101, $AA5E;
  4508.     {$ENDC}
  4509. FUNCTION DirFindRecordGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4510.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4511.     INLINE $3F3C, $0140, $AA5E;
  4512.     {$ENDC}
  4513. FUNCTION DirFindRecordParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4514.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4515.     INLINE $3F3C, $0141, $AA5E;
  4516.     {$ENDC}
  4517. FUNCTION DirLookupGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4518.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4519.     INLINE $3F3C, $0117, $AA5E;
  4520.     {$ENDC}
  4521. FUNCTION DirLookupParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4522.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4523.     INLINE $3F3C, $0102, $AA5E;
  4524.     {$ENDC}
  4525. FUNCTION DirAddAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4526.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4527.     INLINE $3F3C, $010B, $AA5E;
  4528.     {$ENDC}
  4529. FUNCTION DirDeleteAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4530.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4531.     INLINE $3F3C, $010C, $AA5E;
  4532.     {$ENDC}
  4533. FUNCTION DirDeleteAttributeType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4534.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4535.     INLINE $3F3C, $0130, $AA5E;
  4536.     {$ENDC}
  4537. FUNCTION DirChangeAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4538.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4539.     INLINE $3F3C, $010D, $AA5E;
  4540.     {$ENDC}
  4541. FUNCTION DirVerifyAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4542.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4543.     INLINE $3F3C, $010E, $AA5E;
  4544.     {$ENDC}
  4545. FUNCTION DirFindValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4546.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4547.     INLINE $3F3C, $0126, $AA5E;
  4548.     {$ENDC}
  4549. FUNCTION DirEnumerateAttributeTypesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4550.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4551.     INLINE $3F3C, $0112, $AA5E;
  4552.     {$ENDC}
  4553. FUNCTION DirEnumerateAttributeTypesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4554.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4555.     INLINE $3F3C, $0103, $AA5E;
  4556.     {$ENDC}
  4557. FUNCTION DirAddPseudonym(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4558.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4559.     INLINE $3F3C, $010F, $AA5E;
  4560.     {$ENDC}
  4561. FUNCTION DirDeletePseudonym(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4562.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4563.     INLINE $3F3C, $0110, $AA5E;
  4564.     {$ENDC}
  4565. FUNCTION DirAddAlias(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4566.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4567.     INLINE $3F3C, $011C, $AA5E;
  4568.     {$ENDC}
  4569. FUNCTION DirEnumeratePseudonymGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4570.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4571.     INLINE $3F3C, $0113, $AA5E;
  4572.     {$ENDC}
  4573. FUNCTION DirEnumeratePseudonymParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4574.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4575.     INLINE $3F3C, $0104, $AA5E;
  4576.     {$ENDC}
  4577. FUNCTION DirGetNameAndType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4578.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4579.     INLINE $3F3C, $0114, $AA5E;
  4580.     {$ENDC}
  4581. FUNCTION DirSetNameAndType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4582.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4583.     INLINE $3F3C, $0115, $AA5E;
  4584.     {$ENDC}
  4585. FUNCTION DirGetRecordMetaInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4586.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4587.     INLINE $3F3C, $0116, $AA5E;
  4588.     {$ENDC}
  4589. FUNCTION DirGetDNodeMetaInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4590.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4591.     INLINE $3F3C, $0118, $AA5E;
  4592.     {$ENDC}
  4593. FUNCTION DirGetDirectoryInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4594.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4595.     INLINE $3F3C, $0119, $AA5E;
  4596.     {$ENDC}
  4597. FUNCTION DirGetDNodeAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4598.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4599.     INLINE $3F3C, $012A, $AA5E;
  4600.     {$ENDC}
  4601. FUNCTION DirGetDNodeAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4602.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4603.     INLINE $3F3C, $012F, $AA5E;
  4604.     {$ENDC}
  4605. FUNCTION DirGetRecordAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4606.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4607.     INLINE $3F3C, $012C, $AA5E;
  4608.     {$ENDC}
  4609. FUNCTION DirGetRecordAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4610.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4611.     INLINE $3F3C, $0134, $AA5E;
  4612.     {$ENDC}
  4613. FUNCTION DirGetAttributeAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4614.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4615.     INLINE $3F3C, $012E, $AA5E;
  4616.     {$ENDC}
  4617. FUNCTION DirGetAttributeAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4618.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4619.     INLINE $3F3C, $0138, $AA5E;
  4620.     {$ENDC}
  4621. FUNCTION DirEnumerateDirectoriesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4622.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4623.     INLINE $3F3C, $011A, $AA5E;
  4624.     {$ENDC}
  4625. FUNCTION DirEnumerateDirectoriesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4626.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4627.     INLINE $3F3C, $0106, $AA5E;
  4628.     {$ENDC}
  4629. FUNCTION DirMapPathNameToDNodeNumber(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4630.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4631.     INLINE $3F3C, $0122, $AA5E;
  4632.     {$ENDC}
  4633. FUNCTION DirMapDNodeNumberToPathName(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4634.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4635.     INLINE $3F3C, $0123, $AA5E;
  4636.     {$ENDC}
  4637.  
  4638. FUNCTION DirGetLocalNetworkSpec(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4639.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4640.     INLINE $3F3C, $0124, $AA5E;
  4641.     {$ENDC}
  4642. FUNCTION DirGetDNodeInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4643.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4644.     INLINE $3F3C, $0125, $AA5E;
  4645.     {$ENDC}
  4646.  
  4647. {  Trap Dispatchers for Personal Catalog and CSAM Extensions }
  4648. FUNCTION DirCreatePersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4649.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4650.     INLINE $7000, $1F00, $3F3C, $011F, $AA5E;
  4651.     {$ENDC}
  4652. FUNCTION DirOpenPersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4653.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4654.     INLINE $7000, $1F00, $3F3C, $011E, $AA5E;
  4655.     {$ENDC}
  4656. FUNCTION DirClosePersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4657.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4658.     INLINE $7000, $1F00, $3F3C, $0131, $AA5E;
  4659.     {$ENDC}
  4660. FUNCTION DirMakePersonalDirectoryRLI(paramBlock: DirParamBlockPtr): OSErr;
  4661.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4662.     INLINE $7000, $1F00, $3F3C, $0132, $AA5E;
  4663.     {$ENDC}
  4664. FUNCTION DirAddDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4665.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4666.     INLINE $7000, $1F00, $3F3C, $011D, $AA5E;
  4667.     {$ENDC}
  4668. FUNCTION DirInstantiateDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4669.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4670.     INLINE $7000, $1F00, $3F3C, $0127, $AA5E;
  4671.     {$ENDC}
  4672.  
  4673. FUNCTION DirRemoveDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4674.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4675.     INLINE $7000, $1F00, $3F3C, $0120, $AA5E;
  4676.     {$ENDC}
  4677. FUNCTION DirAddDSAMDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4678.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4679.     INLINE $3F3C, $0133, $AA5E;
  4680.     {$ENDC}
  4681. FUNCTION DirGetExtendedDirectoriesInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4682.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4683.     INLINE $3F3C, $0136, $AA5E;
  4684.     {$ENDC}
  4685. FUNCTION DirGetDirectoryIcon(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4686.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4687.     INLINE $3F3C, $0121, $AA5E;
  4688.     {$ENDC}
  4689.  
  4690. FUNCTION DirAddADAPDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4691.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4692.     INLINE $3F3C, $0137, $AA5E;
  4693.     {$ENDC}
  4694. FUNCTION DirRemoveDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4695.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4696.     INLINE $3F3C, $0135, $AA5E;
  4697.     {$ENDC}
  4698. FUNCTION DirNetSearchADAPDirectoriesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4699.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4700.     INLINE $3F3C, $0108, $AA5E;
  4701.     {$ENDC}
  4702. FUNCTION DirNetSearchADAPDirectoriesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4703.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4704.     INLINE $3F3C, $0105, $AA5E;
  4705.     {$ENDC}
  4706. FUNCTION DirFindADAPDirectoryByNetSearch(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4707.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4708.     INLINE $3F3C, $0107, $AA5E;
  4709.     {$ENDC}
  4710. FUNCTION DirGetOCESetupRefNum(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4711.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4712.     INLINE $3F3C, $0128, $AA5E;
  4713.     {$ENDC}
  4714. FUNCTION DirAbort(paramBlock: DirParamBlockPtr): OSErr;
  4715.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4716.     INLINE $7000, $1F00, $3F3C, $011B, $AA5E;
  4717.     {$ENDC}
  4718. FUNCTION OCESetupAddDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4719.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4720.     INLINE $3F3C, $0219, $AA5E;
  4721.     {$ENDC}
  4722. FUNCTION OCESetupChangeDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4723.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4724.     INLINE $3F3C, $021B, $AA5E;
  4725.     {$ENDC}
  4726. FUNCTION OCESetupRemoveDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4727.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4728.     INLINE $3F3C, $020D, $AA5E;
  4729.     {$ENDC}
  4730. FUNCTION OCESetupGetDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4731.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4732.     INLINE $3F3C, $020E, $AA5E;
  4733.     {$ENDC}
  4734. {$ALIGN RESET}
  4735. {$POP}
  4736.  
  4737. {$SETC UsingIncludes := OCEAuthDirIncludes}
  4738.  
  4739. {$ENDC} {__OCEAUTHDIR__}
  4740.  
  4741. {$IFC NOT UsingIncludes}
  4742.  END.
  4743. {$ENDC}
  4744.